]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix wake from suspend LED functionality
authorpatrickmt <40182064+patrickmt@users.noreply.github.com>
Thu, 18 Apr 2019 13:35:50 +0000 (09:35 -0400)
committerDrashna Jaelre <drashna@live.com>
Thu, 18 Apr 2019 18:55:45 +0000 (11:55 -0700)
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.

tmk_core/common/arm_atsam/suspend.c

index 9c2c47d5610c8711951a20aa9273a5432209994a..ecf8f0ed1892cef37a1acc68846af9463a64646c 100644 (file)
@@ -78,7 +78,13 @@ 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();