diff --git a/components/tc_bus/protocol.cpp b/components/tc_bus/protocol.cpp index 085e7d6..deb38b9 100644 --- a/components/tc_bus/protocol.cpp +++ b/components/tc_bus/protocol.cpp @@ -193,14 +193,11 @@ namespace esphome // 81 0 00000 // select eeprom page of serial number - switch ((command >> 28) & 0xF) + switch ((command >> 24) & 0xF) { case 1: data.type = COMMAND_TYPE_SELECT_EEPROM_PAGE; - - uint32_t thirdNibble = (command >> 24) & 0xF; // Nibble isolieren - data.address = static_cast(thirdNibble); - + data.address = (command >> 20) & 0xF; data.serial_number = command & 0xFFFFF; break; }