浏览代码

animations, midi, etc

Jack Humbert 8 年之前
父节点
当前提交
530dd3377e
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 0 1
      quantum/light_ws2812.c
  2. 3 2
      tmk_core/protocol/lufa/lufa.c

+ 0 - 1
quantum/light_ws2812.c

@@ -171,7 +171,6 @@ void inline ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t leds)
     }
     I2C_Stop();
     SREG=sreg_prev;
-    // TWCR = (1<<TWINT) | (1<<TWSTA) | (1<<TWEN);
     TWCR=twcr_prev;
   #endif
 

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

@@ -1043,12 +1043,13 @@ int main(void)
         }
         #endif
 
+        keyboard_task();
+
 #ifdef MIDI_ENABLE
         midi_device_process(&midi_device);
         // MIDI_Task();
 #endif
-        keyboard_task();
-
+        
 #ifdef RGBLIGHT_ENABLE
         rgblight_task();
 #endif