]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Switch to noeeprom variants of rgb fns (#3077)
authorYan-Fa Li <yanfali@gmail.com>
Tue, 29 May 2018 22:58:10 +0000 (15:58 -0700)
committerDrashna Jaelre <drashna@live.com>
Tue, 29 May 2018 22:58:10 +0000 (15:58 -0700)
- avoid writing to the eeprom when possible

keyboards/bigswitch/bigswitch.c

index 3cc11e602676a396a8d7c299c7e79637fdc40487..dfd9710e27133e221f006de4096e39df3e32c9ce 100644 (file)
@@ -26,8 +26,8 @@ void matrix_init_user(void) {
 void matrix_scan_user(void) {
   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();
   }
 }