summaryrefslogtreecommitdiff
path: root/tmk_core/common/chibios
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2021-03-02 14:32:15 -0600
committerGitHub <noreply@github.com>2021-03-03 07:32:15 +1100
commitcde2859a6591b1274da20978bd158f20229faa88 (patch)
tree181d3a637b661b0683282e412672e73efbf10f37 /tmk_core/common/chibios
parent967d7c47dc90c2cc087fb68acb328cc6e3fca76a (diff)
Split RGB Matrix (#11055)
* Split RGB Matrix * Suspend State sync for rgb matrix
Diffstat (limited to 'tmk_core/common/chibios')
-rw-r--r--tmk_core/common/chibios/suspend.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tmk_core/common/chibios/suspend.c b/tmk_core/common/chibios/suspend.c
index 49e20641fb..17f024caba 100644
--- a/tmk_core/common/chibios/suspend.c
+++ b/tmk_core/common/chibios/suspend.c
@@ -24,6 +24,10 @@
# include "rgblight.h"
#endif
+#ifdef RGB_MATRIX_ENABLE
+# include "rgb_matrix.h"
+#endif
+
/** \brief suspend idle
*
* FIXME: needs doc
@@ -53,6 +57,10 @@ void suspend_power_down(void) {
backlight_set(0);
#endif
+#ifdef RGB_MATRIX_ENABLE
+ rgb_matrix_task();
+#endif
+
// Turn off LED indicators
uint8_t leds_off = 0;
#if defined(BACKLIGHT_CAPS_LOCK) && defined(BACKLIGHT_ENABLE)