Move rgblight and backlight task to common location (#7733)

This commit is contained in:
Joel Challis
2020-01-19 00:59:09 +00:00
committed by Florian Didron
parent 895f8bdeb5
commit 5b6592f616
5 changed files with 11 additions and 16 deletions

View File

@@ -635,12 +635,8 @@ void matrix_scan_quantum() {
matrix_scan_combo();
#endif
#if defined(BACKLIGHT_ENABLE)
# if defined(LED_MATRIX_ENABLE)
#ifdef LED_MATRIX_ENABLE
led_matrix_task();
# elif defined(BACKLIGHT_PIN) || defined(BACKLIGHT_PINS)
backlight_task();
# endif
#endif
#ifdef RGB_MATRIX_ENABLE

View File

@@ -330,6 +330,16 @@ MATRIX_LOOP_END:
matrix_scan_perf_task();
#endif
#if defined(RGBLIGHT_ANIMATIONS) && defined(RGBLIGHT_ENABLE)
rgblight_task();
#endif
#if defined(BACKLIGHT_ENABLE)
# if defined(BACKLIGHT_PIN) || defined(BACKLIGHT_PINS)
backlight_task();
# endif
#endif
#ifdef QWIIC_ENABLE
qwiic_task();
#endif

View File

@@ -234,8 +234,5 @@ int main(void) {
webusb_task();
#endif
#if defined(RGBLIGHT_ANIMATIONS) && defined(RGBLIGHT_ENABLE)
rgblight_task();
#endif
}
}

View File

@@ -1110,10 +1110,6 @@ int main(void) {
MIDI_Device_USBTask(&USB_MIDI_Interface);
#endif
#if defined(RGBLIGHT_ANIMATIONS) && defined(RGBLIGHT_ENABLE)
rgblight_task();
#endif
#ifdef MODULE_ADAFRUIT_BLE
adafruit_ble_task();
#endif

View File

@@ -99,10 +99,6 @@ int main(void) {
// To prevent failing to configure NOT scan keyboard during configuration
if (usbConfiguration && usbInterruptIsReady()) {
keyboard_task();
#if defined(RGBLIGHT_ANIMATIONS) && defined(RGBLIGHT_ENABLE)
rgblight_task();
#endif
}
vusb_transfer_keyboard();
}