From b76cd1cf036aedec5e5c2c1ce71ad93d4d66bee0 Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 23 Sep 2024 01:03:01 +0200 Subject: [PATCH] Fix --- components/tc_bus/tc_bus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tc_bus/tc_bus.cpp b/components/tc_bus/tc_bus.cpp index 45256a8..8b0bd7e 100644 --- a/components/tc_bus/tc_bus.cpp +++ b/components/tc_bus/tc_bus.cpp @@ -332,7 +332,7 @@ namespace esphome for (std::size_t i = 0; i < eeprom_buffer_.size(); ++i) { - uint8_t byte = data[i]; + uint8_t byte = eeprom_buffer_[i]; hexString[2 * i] = hexChars[(byte >> 4) & 0xF]; hexString[2 * i + 1] = hexChars[byte & 0xF]; }