From 782ff67bcdbd4634593bed8aa2a262b456e5d8cb Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 23 Sep 2024 02:28:37 +0200 Subject: [PATCH] Fix --- components/tc_bus/protocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tc_bus/protocol.cpp b/components/tc_bus/protocol.cpp index 3c879bb6..5fd1d53c 100644 --- a/components/tc_bus/protocol.cpp +++ b/components/tc_bus/protocol.cpp @@ -198,7 +198,7 @@ namespace esphome case 1: data.type = COMMAND_TYPE_SELECT_EEPROM_PAGE; - uint32_t thirdNibble = (value >> 24) & 0xF; // Nibble isolieren + uint32_t thirdNibble = (command >> 24) & 0xF; // Nibble isolieren data.address = static_cast(thirdNibble); data.serial_number = command & 0xFFFFF;