mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Add startup lockout to movement checks
This commit is contained in:
@@ -306,9 +306,12 @@ static int gui_SolderingSleepingMode(bool stayOff) {
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
// user moved or pressed a button, go back to soldering
|
// 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()) {
|
if (!shouldBeSleeping()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef POW_DC
|
#ifdef POW_DC
|
||||||
if (checkVoltageForExit())
|
if (checkVoltageForExit())
|
||||||
|
|||||||
Reference in New Issue
Block a user