global if behavior name starts with 'layer'

This commit is contained in:
tokazio 2023-01-17 22:25:22 +01:00
parent c2992bf0e5
commit 69b50b8ce7

View file

@ -39,7 +39,7 @@ static void behavior_queue_process_next(struct k_work *work) {
if (item.press) { if (item.press) {
if(strncmp(item.binding.behavior_dev,"RGB_UG",6)==0){ if(strncmp(item.binding.behavior_dev,"RGB_UG",6)==0){
LOG_DBG("RGB_COLOR_HSB_CMD sending binding to peripheral"); LOG_DBG("RGB_COLOR_HSB_CMD sending binding to peripheral");
zmk_split_bt_invoke_behavior(0, &binding, event, true); zmk_split_bt_invoke_behavior(0, &item.binding, event, true);
} }
behavior_keymap_binding_pressed(&item.binding, event); behavior_keymap_binding_pressed(&item.binding, event);
} else { } else {