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 956182f commit a6db47d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ namespace esphome
ESP_LOGD(TAG, "Set debug interval");
this->set_interval("debuglogs", 2000, [this] {
this->rx_pin_->detach_interrupt();
uint8_t index = s.debug_buffer_index;
s.debug_buffer_index = 0;
uint8_t index = this->store_.debug_buffer_index;
this->store_.debug_buffer_index = 0;
this->rx_pin_->attach_interrupt(TCBusComponentStore::gpio_intr, &this->store_, gpio::INTERRUPT_ANY_EDGE);

ESP_LOGD(TAG, "Time diff interval ended:");
for (uint8_t i = 0; i < index; i++) {
ESP_LOGD(TAG, "Time diff: %i", s.debug_buffer[i]);
ESP_LOGD(TAG, "Time diff: %i", this->store_.debug_buffer[i]);
}
});
}
Expand Down

0 comments on commit a6db47d

Please sign in to comment.