aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-04-13 19:51:03 +1000
committerGitHub <noreply@github.com>2021-04-13 19:51:03 +1000
commitce99f98bb5217ede628cfbf7e20924346b4279da (patch)
tree20079e250b26339964ff3eb9c588d35474cbe8c5 /tmk_core
parent15f7cc3bde0199afe3b49718fa7b73bc6771e04b (diff)
downloadqmk_firmware-ce99f98bb5217ede628cfbf7e20924346b4279da.tar.gz
qmk_firmware-ce99f98bb5217ede628cfbf7e20924346b4279da.zip
LED Matrix: suspend code (#12509)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/avr/suspend.c3
-rw-r--r--tmk_core/common/chibios/suspend.c6
-rw-r--r--tmk_core/common/keyboard.c3
3 files changed, 12 insertions, 0 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index d52c8ac41..96b19a77f 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -28,6 +28,9 @@
28# include "rgblight.h" 28# include "rgblight.h"
29#endif 29#endif
30 30
31#ifdef LED_MATRIX_ENABLE
32# include "led_matrix.h"
33#endif
31#ifdef RGB_MATRIX_ENABLE 34#ifdef RGB_MATRIX_ENABLE
32# include "rgb_matrix.h" 35# include "rgb_matrix.h"
33#endif 36#endif
diff --git a/tmk_core/common/chibios/suspend.c b/tmk_core/common/chibios/suspend.c
index 17f024cab..b3949185e 100644
--- a/tmk_core/common/chibios/suspend.c
+++ b/tmk_core/common/chibios/suspend.c
@@ -24,6 +24,9 @@
24# include "rgblight.h" 24# include "rgblight.h"
25#endif 25#endif
26 26
27#ifdef LED_MATRIX_ENABLE
28# include "led_matrix.h"
29#endif
27#ifdef RGB_MATRIX_ENABLE 30#ifdef RGB_MATRIX_ENABLE
28# include "rgb_matrix.h" 31# include "rgb_matrix.h"
29#endif 32#endif
@@ -57,6 +60,9 @@ void suspend_power_down(void) {
57 backlight_set(0); 60 backlight_set(0);
58#endif 61#endif
59 62
63#ifdef LED_MATRIX_ENABLE
64 led_matrix_task();
65#endif
60#ifdef RGB_MATRIX_ENABLE 66#ifdef RGB_MATRIX_ENABLE
61 rgb_matrix_task(); 67 rgb_matrix_task();
62#endif 68#endif
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c
index e473806b2..132affe7a 100644
--- a/tmk_core/common/keyboard.c
+++ b/tmk_core/common/keyboard.c
@@ -330,6 +330,9 @@ void keyboard_init(void) {
330 * This is differnet than keycode events as no layer processing, or filtering occurs. 330 * This is differnet than keycode events as no layer processing, or filtering occurs.
331 */ 331 */
332void switch_events(uint8_t row, uint8_t col, bool pressed) { 332void switch_events(uint8_t row, uint8_t col, bool pressed) {
333#if defined(LED_MATRIX_ENABLE)
334 process_led_matrix(row, col, pressed);
335#endif
333#if defined(RGB_MATRIX_ENABLE) 336#if defined(RGB_MATRIX_ENABLE)
334 process_rgb_matrix(row, col, pressed); 337 process_rgb_matrix(row, col, pressed);
335#endif 338#endif