From 8a037316fa5f40ff92250922cdcb2ebafe428f76 Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 23 Sep 2024 15:35:19 +0200 Subject: [PATCH] Changes --- components/tc_bus/tc_bus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/tc_bus/tc_bus.cpp b/components/tc_bus/tc_bus.cpp index f0abe9e..7e1719a 100644 --- a/components/tc_bus/tc_bus.cpp +++ b/components/tc_bus/tc_bus.cpp @@ -154,7 +154,7 @@ namespace esphome { if(reading_memory_) { - ESP_LOGD(TAG, "Received 4 memory Blocks starting at: %i", (reading_memory_count_ * 4)); + ESP_LOGD(TAG, "Received 4 memory Blocks %i to %i", (reading_memory_count_ * 4), (reading_memory_count_ * 4) + 4); // Save Data to memory Store memory_buffer_.push_back((s.s_cmd >> 24) & 0xFF); @@ -178,7 +178,7 @@ namespace esphome delay(50); // Request Data Blocks - ESP_LOGD(TAG, "Read 4 memory addresses starting at %i", reading_memory_count_); + ESP_LOGD(TAG, "Read 4 memory addresses %i to %i", (reading_memory_count_ * 4), (reading_memory_count_ * 4) + 4); send_command(COMMAND_TYPE_READ_MEMORY_BLOCK, reading_memory_count_); } } @@ -584,7 +584,7 @@ namespace esphome reading_memory_ = true; reading_memory_count_ = 0; - ESP_LOGD(TAG, "Read 4 memory addresses starting at %i", reading_memory_count_); + ESP_LOGD(TAG, "Read 4 memory addresses %i to %i", (reading_memory_count_ * 4), (reading_memory_count_ * 4) + 4); send_command(COMMAND_TYPE_READ_MEMORY_BLOCK, reading_memory_count_); }