From d044197f7658abde287c51a5112e97c7a4406cea Mon Sep 17 00:00:00 2001 From: lalalademaxiya1 <2831039915@qq.com> Date: Tue, 15 Aug 2023 17:41:53 +0800 Subject: Update q8 pro --- keyboards/keychron/q8_pro/q8_pro.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'keyboards/keychron/q8_pro/q8_pro.c') 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(); +} -- cgit v1.2.3 From 031f5132817f56f3c874be396815b3999349f8a2 Mon Sep 17 00:00:00 2001 From: lalalademaxiya1 <2831039915@qq.com> Date: Mon, 28 Aug 2023 10:11:32 +0800 Subject: Update q8 pro and k11 pro --- keyboards/keychron/q8_pro/q8_pro.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keyboards/keychron/q8_pro/q8_pro.c') diff --git a/keyboards/keychron/q8_pro/q8_pro.c b/keyboards/keychron/q8_pro/q8_pro.c index 14bb965a82..aa0426149a 100755 --- a/keyboards/keychron/q8_pro/q8_pro.c +++ b/keyboards/keychron/q8_pro/q8_pro.c @@ -134,7 +134,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { return true; } -#if defined(KC_BLUETOOTH_ENABLE) && defined(ENCODER_ENABLE) +#if defined(ENCODER_ENABLE) static void encoder_pad_cb(void *param) { encoder_inerrupt_read((uint32_t)param & 0xFF); } @@ -156,8 +156,9 @@ void keyboard_post_init_kb(void) { ckbt51_init(false); bluetooth_init(); +#endif -# ifdef ENCODER_ENABLE +#ifdef ENCODER_ENABLE pin_t encoders_pad_a[NUM_ENCODERS] = ENCODERS_PAD_A; pin_t encoders_pad_b[NUM_ENCODERS] = ENCODERS_PAD_B; for (uint32_t i = 0; i < NUM_ENCODERS; i++) { @@ -166,7 +167,6 @@ void keyboard_post_init_kb(void) { palSetLineCallback(encoders_pad_a[i], encoder_pad_cb, (void *)i); palSetLineCallback(encoders_pad_b[i], encoder_pad_cb, (void *)i); } -# endif #endif keyboard_post_init_user(); -- cgit v1.2.3