]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/arm_atsam/suspend.c
[Keyboard] Corrected Tanuki keymap to match physical appearance (#6216)
[qmk_firmware.git] / tmk_core / common / arm_atsam / suspend.c
index e34965df64e14b9ea17ad0870158454fb1a62555..ecf8f0ed1892cef37a1acc68846af9463a64646c 100644 (file)
@@ -35,7 +35,9 @@ void suspend_power_down_kb(void) {
  */
 void suspend_power_down(void)
 {
+#ifdef RGB_MATRIX_ENABLE
     I2C3733_Control_Set(0); //Disable LED driver
+#endif
 
     suspend_power_down_kb();
 }
@@ -75,10 +77,15 @@ void suspend_wakeup_init_kb(void) {
  * FIXME: needs doc
  */
 void suspend_wakeup_init(void) {
-    /* If LEDs are set to enabled, enable the hardware */
+#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();
 }