Review fixes for layer lock feature (#24627)
This commit is contained in:
parent
65a8a5ff69
commit
968a611476
7 changed files with 35 additions and 114 deletions
|
@ -140,9 +140,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#ifdef OS_DETECTION_ENABLE
|
||||
# include "os_detection.h"
|
||||
#endif
|
||||
#if defined(LAYER_LOCK_ENABLE) && LAYER_LOCK_IDLE_TIMEOUT > 0
|
||||
#ifdef LAYER_LOCK_ENABLE
|
||||
# include "layer_lock.h"
|
||||
#endif // LAYER_LOCK_ENABLE
|
||||
#endif
|
||||
|
||||
static uint32_t last_input_modification_time = 0;
|
||||
uint32_t last_input_activity_time(void) {
|
||||
|
@ -659,7 +659,7 @@ void quantum_task(void) {
|
|||
secure_task();
|
||||
#endif
|
||||
|
||||
#if defined(LAYER_LOCK_ENABLE) && LAYER_LOCK_IDLE_TIMEOUT > 0
|
||||
#ifdef LAYER_LOCK_ENABLE
|
||||
layer_lock_task();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue