diff options
author | Peter Johanson <[email protected]> | 2022-02-20 15:08:40 -0500 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2022-04-03 00:10:29 -0400 |
commit | 9203ae217bab6f1edcbf13f010054afc4191d14c (patch) | |
tree | b2a03fb5f022e29b7eeba2ff6c75b6f3c3e1fe22 /app/src/activity.c | |
parent | 94ac100b6b9a5d15c0d2ef881be8615ef1e4996b (diff) | |
download | zmk-9203ae217bab6f1edcbf13f010054afc4191d14c.tar.gz zmk-9203ae217bab6f1edcbf13f010054afc4191d14c.zip |
fix(activity): Use proper PM state for sleep.
Diffstat (limited to 'app/src/activity.c')
-rw-r--r-- | app/src/activity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/activity.c b/app/src/activity.c index 1fa75eb59b..469ccdf73a 100644 --- a/app/src/activity.c +++ b/app/src/activity.c @@ -69,8 +69,8 @@ void activity_work_handler(struct k_work *work) { #if IS_ENABLED(CONFIG_ZMK_SLEEP) if (inactive_time > MAX_SLEEP_MS && !is_usb_power_present()) { // Put devices in low power mode before sleeping - pm_power_state_force((struct pm_state_info){PM_STATE_STANDBY, 0, 0}); set_state(ZMK_ACTIVITY_SLEEP); + pm_power_state_set((struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}); } else #endif /* IS_ENABLED(CONFIG_ZMK_SLEEP) */ if (inactive_time > MAX_IDLE_MS) { |