diff options
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r-- | quantum/quantum.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 8316d1f06..8c928441c 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
@@ -274,10 +274,10 @@ bool process_record_quantum(keyrecord_t *record) { | |||
274 | #ifdef HAPTIC_ENABLE | 274 | #ifdef HAPTIC_ENABLE |
275 | process_haptic(keycode, record) && | 275 | process_haptic(keycode, record) && |
276 | #endif //HAPTIC_ENABLE | 276 | #endif //HAPTIC_ENABLE |
277 | process_record_kb(keycode, record) && | 277 | #if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_KEYREACTIVE_ENABLED) |
278 | #if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_KEYPRESSES) | ||
279 | process_rgb_matrix(keycode, record) && | 278 | process_rgb_matrix(keycode, record) && |
280 | #endif | 279 | #endif |
280 | process_record_kb(keycode, record) && | ||
281 | #if defined(MIDI_ENABLE) && defined(MIDI_ADVANCED) | 281 | #if defined(MIDI_ENABLE) && defined(MIDI_ADVANCED) |
282 | process_midi(keycode, record) && | 282 | process_midi(keycode, record) && |
283 | #endif | 283 | #endif |
@@ -1049,12 +1049,6 @@ void matrix_init_quantum() { | |||
1049 | matrix_init_kb(); | 1049 | matrix_init_kb(); |
1050 | } | 1050 | } |
1051 | 1051 | ||
1052 | uint8_t rgb_matrix_task_counter = 0; | ||
1053 | |||
1054 | #ifndef RGB_MATRIX_SKIP_FRAMES | ||
1055 | #define RGB_MATRIX_SKIP_FRAMES 1 | ||
1056 | #endif | ||
1057 | |||
1058 | void matrix_scan_quantum() { | 1052 | void matrix_scan_quantum() { |
1059 | #if defined(AUDIO_ENABLE) && !defined(NO_MUSIC_MODE) | 1053 | #if defined(AUDIO_ENABLE) && !defined(NO_MUSIC_MODE) |
1060 | matrix_scan_music(); | 1054 | matrix_scan_music(); |
@@ -1078,10 +1072,6 @@ void matrix_scan_quantum() { | |||
1078 | 1072 | ||
1079 | #ifdef RGB_MATRIX_ENABLE | 1073 | #ifdef RGB_MATRIX_ENABLE |
1080 | rgb_matrix_task(); | 1074 | rgb_matrix_task(); |
1081 | if (rgb_matrix_task_counter == 0) { | ||
1082 | rgb_matrix_update_pwm_buffers(); | ||
1083 | } | ||
1084 | rgb_matrix_task_counter = ((rgb_matrix_task_counter + 1) % (RGB_MATRIX_SKIP_FRAMES + 1)); | ||
1085 | #endif | 1075 | #endif |
1086 | 1076 | ||
1087 | #ifdef ENCODER_ENABLE | 1077 | #ifdef ENCODER_ENABLE |