Removes pending unlock screen due to dificulty with incoming call

Ideally I'd determine what the unlock source is and if it's the modem,
disable the pending screen
This commit is contained in:
Jonathan Hodgson 2021-03-31 21:30:00 +01:00
parent 577396b652
commit fb63acbdf7

View file

@ -358,7 +358,7 @@ setpineled(enum Color c)
int
presuspend() {
//called prior to suspension, a non-zero return value cancels suspension
return system("sxmo_presuspend.sh");
return system("sxmo_presuspend.sh || true");
}
void
@ -417,13 +417,13 @@ syncstate()
} else {
rtcresult = 0;
}
if (rtcresult == 0) {
state = StateSuspendPending;
suspendpendingtimeouts = 0;
} else {
//if (rtcresult == 0) {
// state = StateSuspendPending;
// suspendpendingtimeouts = 0;
//} else {
postwake();
state = StateDead;
}
//}
}
syncstate();
} else if (state == StateNoInput) {