diff options
Diffstat (limited to 'keyboards/bigswitch/bigswitch.c')
| -rw-r--r-- | keyboards/bigswitch/bigswitch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/keyboards/bigswitch/bigswitch.c b/keyboards/bigswitch/bigswitch.c index b924c7017..32f9f7fab 100644 --- a/keyboards/bigswitch/bigswitch.c +++ b/keyboards/bigswitch/bigswitch.c | |||
| @@ -26,10 +26,12 @@ void matrix_init_user(void) { | |||
| 26 | 26 | ||
| 27 | __attribute__ ((weak)) | 27 | __attribute__ ((weak)) |
| 28 | void matrix_scan_user(void) { | 28 | void matrix_scan_user(void) { |
| 29 | #if defined(RGBLIGHT_ENABLE) | ||
| 29 | if (runonce && timer_elapsed(my_timer) > 1000) { | 30 | if (runonce && timer_elapsed(my_timer) > 1000) { |
| 30 | runonce = false; | 31 | runonce = false; |
| 31 | rgblight_sethsv_noeeprom(0x0, 0xff, 0x80); | 32 | rgblight_sethsv_noeeprom(0x0, 0xff, 0x80); |
| 32 | rgblight_mode_noeeprom(9); | 33 | rgblight_mode_noeeprom(9); |
| 33 | rgblight_enable_noeeprom(); | 34 | rgblight_enable_noeeprom(); |
| 34 | } | 35 | } |
| 36 | #endif | ||
| 35 | } | 37 | } |
