summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/k1_pro/k1_pro.c
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2023-09-07 15:35:26 +0800
committerGitHub <noreply@github.com>2023-09-07 15:35:26 +0800
commit41f7e6ddcb2648da2fd9cbca3d64955983e97bbe (patch)
treebebb89fabc13a505d1e57add472341e0dbdd1007 /keyboards/keychron/k1_pro/k1_pro.c
parent40283748598590e461de2f2e1b183750daaf64a6 (diff)
parent031f5132817f56f3c874be396815b3999349f8a2 (diff)
Merge pull request #162 from lalalademaxiya1/k11_pro_encoder_fixed
k11 pro encoder fixed
Diffstat (limited to 'keyboards/keychron/k1_pro/k1_pro.c')
-rw-r--r--keyboards/keychron/k1_pro/k1_pro.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/keyboards/keychron/k1_pro/k1_pro.c b/keyboards/keychron/k1_pro/k1_pro.c
index fede3e5b0b..e67642cb3a 100644
--- a/keyboards/keychron/k1_pro/k1_pro.c
+++ b/keyboards/keychron/k1_pro/k1_pro.c
@@ -317,3 +317,9 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
}
}
#endif
+
+void suspend_wakeup_init_kb(void) {
+ // code will run on keyboard wakeup
+ clear_keyboard();
+ send_keyboard_report();
+}