From bb97dd6686ca9107d33cc11ab8de80f2da6954eb Mon Sep 17 00:00:00 2001 From: Adam Mitchell Date: Tue, 3 Mar 2026 15:52:06 +0000 Subject: [PATCH] Only set _isBound to true after successful address claim --- src/can/zephyr/ThingSetZephyrCanInterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/can/zephyr/ThingSetZephyrCanInterface.cpp b/src/can/zephyr/ThingSetZephyrCanInterface.cpp index d7ae262..02942a3 100644 --- a/src/can/zephyr/ThingSetZephyrCanInterface.cpp +++ b/src/can/zephyr/ThingSetZephyrCanInterface.cpp @@ -207,9 +207,10 @@ bool ThingSetZephyrCanInterface::bind(uint8_t nodeAddress) } LOG_INFO("CAN device %s bound to address 0x%x", _canDevice->name, _nodeAddress); + _isBound = true; } - _isBound = true; - return true; + + return _isBound; } } // namespace ThingSet::Can::Zephyr \ No newline at end of file