summaryrefslogtreecommitdiffstats
path: root/keyboards/bigswitch/bigswitch.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/bigswitch/bigswitch.c')
-rw-r--r--keyboards/bigswitch/bigswitch.c2
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) {
__attribute__ ((weak))
void matrix_scan_user(void) {
+#if defined(RGBLIGHT_ENABLE)
if (runonce && timer_elapsed(my_timer) > 1000) {
runonce = false;
rgblight_sethsv_noeeprom(0x0, 0xff, 0x80);
rgblight_mode_noeeprom(9);
rgblight_enable_noeeprom();
}
+#endif
}