Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Adds debug log warning for session id missmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
vortexuser committed Jun 2, 2024
1 parent dd6d6f9 commit 13dac73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/twig_hardware/firmware/firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 13dac73

Please sign in to comment.