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