init issue fixed

This commit is contained in:
2021-10-23 12:14:26 +02:00
parent 2e5caea417
commit e7f436118f
4 changed files with 67 additions and 43 deletions

View File

@@ -150,7 +150,7 @@ void handlePowerState(void)
{
if (!buttonread)
{
powerstate = on;
powerstate = powerinit;
powerOn();
turnOffAllLed();
delay(200);
@@ -164,6 +164,12 @@ void handlePowerState(void)
}
}
break;
case powerinit:
{
initGames();
powerstate = on;
}
break;
case on:
{
if (buttonPower.pressedFor(100))