diff --git a/app/src/rgb_underglow.c b/app/src/rgb_underglow.c index 8520573085f..d5c31013f50 100644 --- a/app/src/rgb_underglow.c +++ b/app/src/rgb_underglow.c @@ -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) { @@ -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); @@ -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) {