From d865337af810ad8881faa2154555f47b77cb7e97 Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 10 Oct 2024 12:42:20 +0200 Subject: [PATCH] fix return value --- components/tc_bus/tc_bus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tc_bus/tc_bus.cpp b/components/tc_bus/tc_bus.cpp index 3005480..89d4c5a 100644 --- a/components/tc_bus/tc_bus.cpp +++ b/components/tc_bus/tc_bus.cpp @@ -651,7 +651,7 @@ namespace esphome if(memory_buffer_.size() == 0) { ESP_LOGW(TAG, "Memory Buffer is empty! Please read memory first!"); - return; + return false; } if(serial_number == 0) @@ -668,7 +668,7 @@ namespace esphome if(serial_number == 0) { ESP_LOGW(TAG, "Serial Number is not set!"); - return; + return false; } uint8_t saved_nibble = 0;