summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatrickmt <40182064+patrickmt@users.noreply.github.com>2019-04-18 09:35:50 -0400
committerDrashna Jaelre <drashna@live.com>2019-04-18 11:55:45 -0700
commit3542f594d9d6f81edf1de3ead435d19803d83092 (patch)
treec8dd367d578a1d85c7f78d61e6b063a3340a7a1f
parent0511b522e00ec693214434806948ff2a6249f46f (diff)
Fix wake from suspend LED functionality
When waking from suspend, only enable the LED drivers if they were not previously set to disabled by the user. This functionality was removed by the recent updates to adapt Massdrop keyboards to QMK RGB Matrix. Affects Massdrop CTRL and ALT keyboards compiled using Massdrop Configurator mode.
-rw-r--r--tmk_core/common/arm_atsam/suspend.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/common/arm_atsam/suspend.c b/tmk_core/common/arm_atsam/suspend.c
index 9c2c47d561..ecf8f0ed18 100644
--- a/tmk_core/common/arm_atsam/suspend.c
+++ b/tmk_core/common/arm_atsam/suspend.c
@@ -78,8 +78,14 @@ void suspend_wakeup_init_kb(void) {
*/
void suspend_wakeup_init(void) {
#ifdef RGB_MATRIX_ENABLE
+#ifdef USE_MASSDROP_CONFIGURATOR
+ if (led_enabled) {
+ I2C3733_Control_Set(1);
+ }
+#else
I2C3733_Control_Set(1);
#endif
+#endif
suspend_wakeup_init_kb();
}