From 13dac73376c53abe141132f56785b274c4feebb5 Mon Sep 17 00:00:00 2001 From: vortexuser Date: Sun, 2 Jun 2024 21:51:43 +0200 Subject: [PATCH] Adds debug log warning for session id missmatch --- src/twig_hardware/firmware/firmware.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/twig_hardware/firmware/firmware.ino b/src/twig_hardware/firmware/firmware.ino index bdb20d9..f7fb7ec 100644 --- a/src/twig_hardware/firmware/firmware.ino +++ b/src/twig_hardware/firmware/firmware.ino @@ -53,7 +53,12 @@ void resetCommand() bool verify_session_id() { - return twigCommand.sessionId == twigState.sessionId; + if (twigCommand.sessionId == twigState.sessionId) + { + return true; + } + Serial.println("Session ID mismatch"); + return false; } void updateHardwareConfig() {