From fb63acbdf75e5df58d90386c2133fe827614371f Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 31 Mar 2021 21:30:00 +0100 Subject: [PATCH] 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 --- screenlock.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/screenlock.c b/screenlock.c index 89123f4..c21963c 100644 --- a/screenlock.c +++ b/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) {