]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Make sure Planck light calls user suspend functions (#3568)
authorDrashna Jaelre <drashna@live.com>
Sat, 4 Aug 2018 20:49:10 +0000 (13:49 -0700)
committerJack Humbert <jack.humb@gmail.com>
Sat, 4 Aug 2018 20:49:10 +0000 (16:49 -0400)
* Make sure Planck light calls user suspend functions

* Add suspend.h include to quantum.h for kb/user function compatibility

keyboards/planck/light/light.c
quantum/quantum.h

index cef57c5e69ffd8ab51d6e1c2f3a0972181244f56..f463090dd0b8ee6a0bdf75733ce34acceea4ae63 100644 (file)
@@ -159,10 +159,12 @@ void matrix_scan_kb(void)
 void suspend_power_down_kb(void)
 {
     rgb_matrix_set_suspend_state(true);
+    suspend_power_down_user();
 }
 
 void suspend_wakeup_init_kb(void)
 {
     rgb_matrix_set_suspend_state(false);
+    suspend_wakeup_init_user();
 }
 
index 855a51c1b8faafb94006820d8de63ed8510f39a4..1db9846f045836856186ab8458576ecf35adb67c 100644 (file)
@@ -53,6 +53,7 @@
 #include <stdlib.h>
 #include "print.h"
 #include "send_string_keycodes.h"
+#include "suspend.h"
 
 extern uint32_t default_layer_state;