]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/bigswitch/bigswitch.c
[Keyboard] Snagpad Configurator bugfix and readme refactor (#6381)
[qmk_firmware.git] / keyboards / bigswitch / bigswitch.c
index 3cc11e602676a396a8d7c299c7e79637fdc40487..32f9f7fab82aa8849246914251f38a3d213fe9e0 100644 (file)
@@ -19,15 +19,19 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 volatile uint8_t runonce = true;
 static uint16_t my_timer;
 
+__attribute__ ((weak))
 void matrix_init_user(void) {
   my_timer = timer_read();
 }
 
+__attribute__ ((weak))
 void matrix_scan_user(void) {
+#if defined(RGBLIGHT_ENABLE)
   if (runonce && timer_elapsed(my_timer) > 1000) {
     runonce = false;
-    rgblight_sethsv(0x0, 0xff, 0x80);
-    rgblight_mode(9);
-    rgblight_enable();
+    rgblight_sethsv_noeeprom(0x0, 0xff, 0x80);
+    rgblight_mode_noeeprom(9);
+    rgblight_enable_noeeprom();
   }
+#endif
 }