fix(soft_off): central waits 100ms in split if hold_time enabled
This commit is contained in:
parent
f0b20c1c93
commit
2ee76be6fe
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ static int on_keymap_binding_released(struct zmk_behavior_binding *binding,
|
|||
uint32_t hold_time = k_uptime_get() - data->press_start;
|
||||
|
||||
if (hold_time > config->hold_time_ms) {
|
||||
if (IS_ENABLED(CONFIG_ZMK_SPLIT) && IS_ENABLED(CONFIG_ZMK_SPLIT_ROLE_CENTRAL)) {
|
||||
k_sleep(K_MSEC(100));
|
||||
}
|
||||
zmk_pm_soft_off();
|
||||
} else {
|
||||
LOG_INF("Not triggering soft off: held for %d and hold time is %d", hold_time,
|
||||
|
|
Loading…
Add table
Reference in a new issue