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
This commit is contained in:
parent
435a1202e7
commit
23d68d0ba1
2 changed files with 3 additions and 0 deletions
|
@ -159,10 +159,12 @@ void matrix_scan_kb(void)
|
||||||
void suspend_power_down_kb(void)
|
void suspend_power_down_kb(void)
|
||||||
{
|
{
|
||||||
rgb_matrix_set_suspend_state(true);
|
rgb_matrix_set_suspend_state(true);
|
||||||
|
suspend_power_down_user();
|
||||||
}
|
}
|
||||||
|
|
||||||
void suspend_wakeup_init_kb(void)
|
void suspend_wakeup_init_kb(void)
|
||||||
{
|
{
|
||||||
rgb_matrix_set_suspend_state(false);
|
rgb_matrix_set_suspend_state(false);
|
||||||
|
suspend_wakeup_init_user();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
#include "send_string_keycodes.h"
|
#include "send_string_keycodes.h"
|
||||||
|
#include "suspend.h"
|
||||||
|
|
||||||
extern uint32_t default_layer_state;
|
extern uint32_t default_layer_state;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue