Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Jan 26, 2025
1 parent eb30e20 commit fa16b5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ namespace esphome
this->rx_pin_->attach_interrupt(TCBusComponentStore::gpio_intr, &this->store_, gpio::INTERRUPT_ANY_EDGE);

for (uint8_t i = 0; i < index; i++) {
ESP_LOGD(TAG, "Time diff: %i", debug_buffer[i]);
ESP_LOGD(TAG, "Time diff: %i", s.debug_buffer[i]);
}
});
}
Expand Down Expand Up @@ -327,7 +327,7 @@ namespace esphome
}
#endif

volatile uint32_t TCBusComponentStore::debug_buffer[DEBUG_BUFFER_SIZE];
volatile uint32_t TCBusComponentStore::debug_buffer[100];
volatile uint8_t TCBusComponentStore::debug_buffer_index = 0;
volatile uint32_t TCBusComponentStore::s_last_bit_change = 0;
volatile uint32_t TCBusComponentStore::s_cmd = 0;
Expand Down
2 changes: 2 additions & 0 deletions components/tc_bus/tc_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ namespace esphome
{
static void gpio_intr(TCBusComponentStore *arg);

volatile uint32_t debug_buffer[100];
volatile uint8_t debug_buffer_index = 0;
static volatile uint32_t s_time_between_debug;
static volatile uint32_t s_last_bit_change;
static volatile uint32_t s_cmd;
Expand Down

0 comments on commit fa16b5d

Please sign in to comment.