Skip to content

Commit

Permalink
Restore fast flashing if unpaired to peripheral
Browse files Browse the repository at this point in the history
Leds will now fast flash red on peripheral if unpaired
  • Loading branch information
ReFil committed Dec 17, 2023
1 parent dc8ffd7 commit 9228112
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/rgb_underglow.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static void zmk_rgb_underglow_effect_kinesis() {
#else
#if IS_ENABLED(CONFIG_ZMK_SPLIT_BLE)
// leds for peripheral(right) side
/* if (zmk_ble_active_profile_is_open()) {
if (!zmk_split_bt_peripheral_is_bonded()) {
pixels[0].r = CONFIG_ZMK_RGB_UNDERGLOW_BRT_SCALE * last_ble_state[0];
pixels[0].g = 0;
pixels[0].b = 0;
Expand All @@ -348,8 +348,7 @@ static void zmk_rgb_underglow_effect_kinesis() {
state.animation_step = 0;
}
state.animation_step++;
} else */
if (!zmk_split_bt_peripheral_is_connected()) {
} else if (!zmk_split_bt_peripheral_is_connected()) {
pixels[0].r = CONFIG_ZMK_RGB_UNDERGLOW_BRT_SCALE * last_ble_state[1];
pixels[0].g = 0;
pixels[0].b = 0;
Expand Down

0 comments on commit 9228112

Please sign in to comment.