refactor: Move to new PM API.
This commit is contained in:
parent
243a227ff9
commit
d513dc1766
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ void activity_work_handler(struct k_work *work) {
|
|||
if (inactive_time > MAX_SLEEP_MS && !is_usb_power_present()) {
|
||||
// Put devices in suspend power mode before sleeping
|
||||
set_state(ZMK_ACTIVITY_SLEEP);
|
||||
pm_power_state_force(0U, (struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});
|
||||
pm_state_force(0U, &(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});
|
||||
} else
|
||||
#endif /* IS_ENABLED(CONFIG_ZMK_SLEEP) */
|
||||
if (inactive_time > MAX_IDLE_MS) {
|
||||
|
|
Loading…
Add table
Reference in a new issue