Add startup lockout to movement checks
This commit is contained in:
@@ -306,9 +306,12 @@ static int gui_SolderingSleepingMode(bool stayOff) {
|
||||
|
||||
for (;;) {
|
||||
// user moved or pressed a button, go back to soldering
|
||||
//If in the first two seconds we disable this to let accelerometer warm up
|
||||
if (xTaskGetTickCount() > TICKS_SECOND * 2) {
|
||||
if (!shouldBeSleeping()) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef POW_DC
|
||||
if (checkVoltageForExit())
|
||||
|
||||
Reference in New Issue
Block a user