From fb95c745b43f7da8681de1b3690545c030661e81 Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 23 Sep 2024 01:56:07 +0200 Subject: [PATCH] Test --- components/tc_bus/tc_bus.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/tc_bus/tc_bus.cpp b/components/tc_bus/tc_bus.cpp index 0884e1c..4531fe3 100644 --- a/components/tc_bus/tc_bus.cpp +++ b/components/tc_bus/tc_bus.cpp @@ -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_); @@ -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;