Update keyboards/keychron/k11_pro/k11_pro.c
Co-authored-by: lokher <lokher@gmail.com>
This commit is contained in:
parent
c09c096980
commit
56649bb02e
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,8 @@ void keyboard_post_init_kb(void) {
|
||||||
ckbt51_init(false);
|
ckbt51_init(false);
|
||||||
bluetooth_init();
|
bluetooth_init();
|
||||||
|
|
||||||
# ifdef ENCODER_ENBALE
|
#endif
|
||||||
|
#ifdef ENCODER_ENBALE
|
||||||
pin_t encoders_pad_a[NUM_ENCODERS] = ENCODERS_PAD_A;
|
pin_t encoders_pad_a[NUM_ENCODERS] = ENCODERS_PAD_A;
|
||||||
pin_t encoders_pad_b[NUM_ENCODERS] = ENCODERS_PAD_B;
|
pin_t encoders_pad_b[NUM_ENCODERS] = ENCODERS_PAD_B;
|
||||||
for (uint8_t i = 0; i < NUM_ENCODERS; i++) {
|
for (uint8_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, &i);
|
palSetLineCallback(encoders_pad_a[i], encoder_pad_cb, &i);
|
||||||
palSetLineCallback(encoders_pad_b[i], encoder_pad_cb, &i);
|
palSetLineCallback(encoders_pad_b[i], encoder_pad_cb, &i);
|
||||||
}
|
}
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
power_on_indicator_timer_buffer = sync_timer_read32() | 1;
|
power_on_indicator_timer_buffer = sync_timer_read32() | 1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue