Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Sep 22, 2024
1 parent 0b77f81 commit fb95c74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ namespace esphome
// Turn off
reading_eeprom_ = false;

std::string hexString = format_hex_pretty(eeprom_buffer_);
ESP_LOGD(TAG, "EEPROM Data: %X", eeprom_buffer_);
std::string hexString = str_upper_case(format_hex(eeprom_buffer_));
ESP_LOGD(TAG, "EEPROM Data: %s", hexString.c_str());
}
else
{
delay(200);
delay(50);

// Request Data Blocks
request_eeprom_blocks(reading_eeprom_count_);
Expand Down Expand Up @@ -566,13 +566,13 @@ namespace esphome

ESP_LOGD(TAG, "Select Indoor Stations");
send_command(0x5800); //select indoor stations
delay(200);
delay(50);

ESP_LOGD(TAG, "Select Serial Number: %i", serial_number);
uint32_t select_cmd = 0x81000000;
select_cmd |= ((serial_number & 0xFFFFF) << 0); // C30BA
send_command(select_cmd); // select serial number
delay(200);
delay(50);

reading_eeprom_ = true;
reading_eeprom_count_ = 0;
Expand Down

0 comments on commit fb95c74

Please sign in to comment.