fix statemachine bug

This commit is contained in:
2023-01-02 07:53:36 +01:00
parent bde3daae53
commit 5257cf9a31

View File

@@ -95,6 +95,7 @@ void handleGame(void)
{
handleNewState();
setRFIDscanState(false);
setAudioState(false);
idleTime = millis();
}
@@ -132,7 +133,7 @@ void handleGame(void)
case stateArmed:
{
SetLedColor(CRGB::Green);
setLedBlink(true);
setLedBlink(false);
if (newState)
{
handleNewState();
@@ -201,6 +202,7 @@ void handleGame(void)
setLedBlink(true);
if (newState)
{
setAudioState(false);
handleNewState();
}