extend power statemachine

This commit is contained in:
2022-01-02 18:50:22 +01:00
parent 7509858aa4
commit c340ab9d2a
8 changed files with 178 additions and 39 deletions

View File

@@ -45,7 +45,15 @@ void loop()
handleSensor();
handleHallSensor();
handleGame();
handleOta();
log_v("main: looptime = %d", millis() - looptime);
}
else if(getPowerState() == POWERSTATES::overTheAir2)
{
handleOta();
}
else
{
/* noting */
}
log_v("main: looptime = %d", millis() - looptime);
}