Skip to content

Commit

Permalink
Refactor proximity & autolock state machines
Browse files Browse the repository at this point in the history
The proximity and delayed autolocking logic can get disabled due to
calls, alarms and other exceptional display on sequences. The code
is also hard to follow due to use of triggering based on changes to
individual states.

Refactor the code so that there is one function for controlling
whether the state machine should be active and one function for
evaluating whether the conditions for triggering tklocking apply.

[mce] Refactor proximity & autolock state machines. Contributes to JB#21182
  • Loading branch information
spiiroin committed Mar 18, 2015
1 parent 27a1d42 commit 40ef614
Showing 1 changed file with 176 additions and 241 deletions.

0 comments on commit 40ef614

Please sign in to comment.