~ruther/qmk_firmware

23d68d0ba12ced8b58b7e6225c3c1c5aa41a38d0 — Drashna Jaelre 7 years ago 435a120
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
2 files changed, 3 insertions(+), 0 deletions(-)

M keyboards/planck/light/light.c
M quantum/quantum.h
M keyboards/planck/light/light.c => keyboards/planck/light/light.c +2 -0
@@ 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();
}


M quantum/quantum.h => quantum/quantum.h +1 -0
@@ 53,6 53,7 @@
#include <stdlib.h>
#include "print.h"
#include "send_string_keycodes.h"
#include "suspend.h"

extern uint32_t default_layer_state;