Skip to content

Commit

Permalink
DEBUG: sht3x.c TODOs for debug simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
polesskiy-dev authored Oct 12, 2023
1 parent c8d3fc7 commit 7c5cd08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firmware/src/sensors/sht3x-temperature-humidity/sht3x.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ void SHT3X_Tasks(void) {
sht3xStatesList, sht3xTransitionTable);

#ifdef __DEBUG
// TODO replace by simplified macro: #STRINGIFY_VAR(VAR) ("#VAR")
SHT3X_SIG sig = event.sig;
SHT3X_STATE name = nextState->name;
SYS_DEBUG_PRINT(SYS_ERROR_INFO, "SHT3x Event: %s, Next State: %s\r\n", _debugEventSignals[sig], _debugStateNames[name]);
// TODO SYS_DEBUG_PRINT(SYS_ERROR_INFO, "SHT3x Event: %s, Next State: %s\r\n", STRINGIFY_VAR(sig), STRINGIFY_VAR(name));
#endif

if (FSM_IsValidState(nextState)) FSM_TraverseNextState(&sht3xAO.super, nextState);
Expand Down Expand Up @@ -124,4 +126,4 @@ void SHT3X_TransferEventHandler(
SYS_DEBUG_PRINT(SYS_ERROR_INFO, "SHT3X_TransferEventHandler: unknown event %d\n", event);
return;
};
};
};

0 comments on commit 7c5cd08

Please sign in to comment.