refactor: Move to new sys_poweroff API.

* Move to new `sys_poweroff` API for our deep sleep functionality.
This commit is contained in:
Peter Johanson
2023-11-09 23:59:15 +00:00
committed by Pete Johanson
parent b6d9f3c911
commit 98e3b8b435
2 changed files with 4 additions and 5 deletions

View File

@@ -387,13 +387,12 @@ config ZMK_IDLE_TIMEOUT
config ZMK_SLEEP
bool "Enable deep sleep support"
depends on HAS_POWEROFF
select POWEROFF
imply USB
if ZMK_SLEEP
config PM_DEVICE
default y
config ZMK_IDLE_SLEEP_TIMEOUT
int "Milliseconds of inactivity before entering deep sleep"
default 900000