浏览代码

Switch to noeeprom variants of rgb fns (#3077)

- avoid writing to the eeprom when possible
Yan-Fa Li 7 年之前
父节点
当前提交
4bd64227fd
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      keyboards/bigswitch/bigswitch.c

+ 3 - 3
keyboards/bigswitch/bigswitch.c

@@ -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();
   }
 }