Update app/src/activity.c

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
This commit is contained in:
Pablo Martínez 2024-04-12 15:25:13 +02:00 committed by GitHub
parent 4ccfeb2abd
commit 0947d355d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ void activity_work_handler(struct k_work *work) {
prevent_sleep = prevent_sleep || zmk_split_bt_peripheral_is_connected(); prevent_sleep = prevent_sleep || zmk_split_bt_peripheral_is_connected();
#endif #endif
#endif #endif
if (inactive_time > MAX_SLEEP_MX && !prevent_sleep) { if (inactive_time > MAX_SLEEP_MS && !prevent_sleep) {
// Put devices in suspend power mode before sleeping // Put devices in suspend power mode before sleeping
set_state(ZMK_ACTIVITY_SLEEP); set_state(ZMK_ACTIVITY_SLEEP);