diff --git a/app/src/behavior_queue.c b/app/src/behavior_queue.c index 617d5aad..d79e9553 100644 --- a/app/src/behavior_queue.c +++ b/app/src/behavior_queue.c @@ -9,6 +9,8 @@ #include #include #include +#include + LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); @@ -35,6 +37,10 @@ static void behavior_queue_process_next(struct k_work *work) { .timestamp = k_uptime_get()}; if (item.press) { + if(strncmp(item.binding.behavior_dev,"RGB_UG",6)==0){ + LOG_DBG("RGB_COLOR_HSB_CMD sending binding to peripheral"); + zmk_split_bt_invoke_behavior(0, &binding, event, true); + } behavior_keymap_binding_pressed(&item.binding, event); } else { behavior_keymap_binding_released(&item.binding, event); diff --git a/app/src/behaviors/behavior_rgb_underglow.c b/app/src/behaviors/behavior_rgb_underglow.c index 4c9afe63..3459cd22 100644 --- a/app/src/behaviors/behavior_rgb_underglow.c +++ b/app/src/behaviors/behavior_rgb_underglow.c @@ -8,7 +8,6 @@ #include #include -#include #include #include @@ -129,8 +128,6 @@ static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding, case RGB_EFR_CMD: return zmk_rgb_underglow_cycle_effect(-1); case RGB_COLOR_HSB_CMD: - LOG_DBG("RGB_COLOR_HSB_CMD sending binding to peripheral"); - zmk_split_bt_invoke_behavior(0, &binding, event, true); return zmk_rgb_underglow_set_hsb((struct zmk_led_hsb){.h = (binding->param2 >> 16) & 0xFFFF, .s = (binding->param2 >> 8) & 0xFF, .b = binding->param2 & 0xFF});