]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/bigswitch/bigswitch.c
Big Switch and 5x5 edits (#4168)
[qmk_firmware.git] / keyboards / bigswitch / bigswitch.c
index b924c7017cc213089d10a2bf39103eaebaa995dc..32f9f7fab82aa8849246914251f38a3d213fe9e0 100644 (file)
@@ -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
 }