瀏覽代碼

rgblight_task logic fixes (#7214)

Joel Challis 5 年之前
父節點
當前提交
22812aee5c
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      tmk_core/protocol/lufa/lufa.c
  2. 1 1
      tmk_core/protocol/vusb/main.c

+ 2 - 2
tmk_core/protocol/lufa/lufa.c

@@ -78,7 +78,7 @@ extern keymap_config_t keymap_config;
 #    include "virtser.h"
 #endif
 
-#if (defined(RGB_MIDI) | defined(RGBLIGHT_ANIMATIONS)) & defined(RGBLIGHT_ENABLE)
+#if (defined(RGB_MIDI) || defined(RGBLIGHT_ANIMATIONS)) && defined(RGBLIGHT_ENABLE)
 #    include "rgblight.h"
 #endif
 
@@ -1001,7 +1001,7 @@ int main(void) {
         MIDI_Device_USBTask(&USB_MIDI_Interface);
 #endif
 
-#if defined(RGBLIGHT_ANIMATIONS) & defined(RGBLIGHT_ENABLE)
+#if defined(RGBLIGHT_ANIMATIONS) && defined(RGBLIGHT_ENABLE)
         rgblight_task();
 #endif
 

+ 1 - 1
tmk_core/protocol/vusb/main.c

@@ -22,7 +22,7 @@
 #include "debug.h"
 #include "rgblight_reconfig.h"
 
-#if (defined(RGB_MIDI) | defined(RGBLIGHT_ANIMATIONS)) & defined(RGBLIGHT_ENABLE)
+#if (defined(RGB_MIDI) || defined(RGBLIGHT_ANIMATIONS)) && defined(RGBLIGHT_ENABLE)
 #    include "rgblight.h"
 #endif