1
0
Fork 0

Review fixes for layer lock feature (#24627)

This commit is contained in:
Joel Challis 2024-11-21 13:02:49 +00:00 committed by GitHub
parent 65a8a5ff69
commit 968a611476
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 35 additions and 114 deletions

View file

@ -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
}