Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Jan 30, 2025
1 parent 36c40b2 commit ad07fcf
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 @@ -273,11 +273,11 @@ namespace esphome
bool TCBusComponent::on_receive(remote_base::RemoteReceiveData data)
{
ESP_LOGD(TAG, "Received raw data with length %" PRIi32, data.size());
for (auto pulse_duration : data.get_raw_data()) {
/*for (auto pulse_duration : data.get_raw_data()) {
uint32_t abs_duration = std::abs(pulse_duration);
ESP_LOGD(TAG, "Time %i", abs_duration);
}
return true;
return true;*/

uint32_t command = 0;
uint8_t curPos = 0;
Expand All @@ -300,7 +300,7 @@ namespace esphome
curBit = 2;
} else {
curPos = 0;
ESP_LOGD(TAG, "Bit invalid - duration %i", abs_duration);
ESP_LOGD(TAG, "Bit invalid - duration %i - skip", abs_duration);
continue; // Invalid timing, reset state
}

Expand Down

0 comments on commit ad07fcf

Please sign in to comment.