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:
parent
577396b652
commit
fb63acbdf7
1 changed files with 6 additions and 6 deletions
12
screenlock.c
12
screenlock.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue