From: Drashna Jaelre Date: Sat, 4 Aug 2018 20:49:10 +0000 (-0700) Subject: Make sure Planck light calls user suspend functions (#3568) X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=23d68d0ba12ced8b58b7e6225c3c1c5aa41a38d0;p=qmk_firmware.git Make sure Planck light calls user suspend functions (#3568) * Make sure Planck light calls user suspend functions * Add suspend.h include to quantum.h for kb/user function compatibility --- diff --git a/keyboards/planck/light/light.c b/keyboards/planck/light/light.c index cef57c5e6..f463090dd 100644 --- a/keyboards/planck/light/light.c +++ b/keyboards/planck/light/light.c @@ -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(); } diff --git a/quantum/quantum.h b/quantum/quantum.h index 855a51c1b..1db9846f0 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -53,6 +53,7 @@ #include #include "print.h" #include "send_string_keycodes.h" +#include "suspend.h" extern uint32_t default_layer_state;