Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[fingerprint] Do not enable fingerprint wakeups when p-sensor state i…
…s unknown

Disabling fingerprint wakeups when sensor is in CLOSED state leaves the
wakeups enabled when the sensor state is unknown.

Disable fingerprint wakeups unless the sensor is in OPEN state.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Mar 15, 2019
1 parent 9e09174 commit 2140c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/fingerprint.c
Expand Up @@ -2421,8 +2421,8 @@ fpwakeup_evaluate_allowed(void)
case FPWAKEUP_ENABLE_ALWAYS:
break;
case FPWAKEUP_ENABLE_NO_PROXIMITY:
/* Proximity sensor must not be covered */
if( proximity_sensor_actual == COVER_CLOSED )
/* Proximity sensor must not be covered or unknown */
if( proximity_sensor_actual != COVER_OPEN )
goto EXIT;
break;
}
Expand Down

0 comments on commit 2140c42

Please sign in to comment.