Skip to content

Commit

Permalink
Remove flash actions from RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Jan 11, 2025
1 parent 0e56ea9 commit 783277a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/src/rgb_underglow.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ static struct led_rgb hsb_to_rgb(struct zmk_led_hsb hsb) {

#define LED_RGB(hex) \
((struct led_rgb){ \
r : LED_RGB_SCALING_MULTIPLE * (((hex)&0xFF0000) >> 16), \
g : LED_RGB_SCALING_MULTIPLE * (((hex)&0x00FF00) >> 8), \
b : LED_RGB_SCALING_MULTIPLE * (((hex)&0x0000FF) >> 0) \
r : LED_RGB_SCALING_MULTIPLE * (((hex) & 0xFF0000) >> 16), \
g : LED_RGB_SCALING_MULTIPLE * (((hex) & 0x00FF00) >> 8), \
b : LED_RGB_SCALING_MULTIPLE * (((hex) & 0x0000FF) >> 0) \
})

int zmk_rgb_underglow_set_periph(struct zmk_periph_led periph) {
Expand Down Expand Up @@ -452,9 +452,7 @@ static void zmk_rgb_underglow_tick_handler(struct k_timer *timer) {

K_TIMER_DEFINE(underglow_tick, zmk_rgb_underglow_tick_handler, NULL);

int zmk_rgb_underglow_save_state(void) {
return 0;
}
int zmk_rgb_underglow_save_state(void) { return 0; }

static int zmk_rgb_underglow_init(void) {
led_strip = DEVICE_DT_GET(STRIP_CHOSEN);
Expand Down Expand Up @@ -690,7 +688,7 @@ static int rgb_underglow_auto_state(bool target_wake_state) {
} else {
sleep_state.rgb_state_before_sleeping = state.on;
return zmk_rgb_underglow_off();
}
}
}
#endif
static int rgb_underglow_event_listener(const zmk_event_t *eh) {
Expand Down

0 comments on commit 783277a

Please sign in to comment.