summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q8_pro/q8_pro.c
diff options
context:
space:
mode:
authorlalalademaxiya1 <2831039915@qq.com>2023-08-15 17:41:53 +0800
committerlalalademaxiya1 <2831039915@qq.com>2023-08-15 17:41:53 +0800
commitd044197f7658abde287c51a5112e97c7a4406cea (patch)
treeaf9fab659ca24b9a111b7cf3effc423bdede6d3b /keyboards/keychron/q8_pro/q8_pro.c
parent49a82abb206b347d7c3cddcf29baf6f873e18429 (diff)
Update q8 pro
Diffstat (limited to 'keyboards/keychron/q8_pro/q8_pro.c')
-rwxr-xr-xkeyboards/keychron/q8_pro/q8_pro.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/keyboards/keychron/q8_pro/q8_pro.c b/keyboards/keychron/q8_pro/q8_pro.c
index eade1dce33..14bb965a82 100755
--- a/keyboards/keychron/q8_pro/q8_pro.c
+++ b/keyboards/keychron/q8_pro/q8_pro.c
@@ -136,7 +136,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
#if defined(KC_BLUETOOTH_ENABLE) && defined(ENCODER_ENABLE)
static void encoder_pad_cb(void *param) {
- encoder_inerrupt_read((uint32_t)param & 0XFF);
+ encoder_inerrupt_read((uint32_t)param & 0xFF);
}
#endif
@@ -312,3 +312,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();
+}