fix(soft_off split wait): making it more specific to split keyboards
This commit is contained in:
parent
3a28474bc1
commit
74fb4b68b7
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ 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_ROLE_CENTRAL)) {
|
||||
if (IS_ENABLED(CONFIG_ZMK_SPLIT) && IS_ENABLED(CONFIG_ZMK_SPLIT_ROLE_CENTRAL)) {
|
||||
k_usleep(100000);
|
||||
}
|
||||
zmk_pm_soft_off();
|
||||
|
|
Loading…
Add table
Reference in a new issue