Browse Source

Fix DPI init not syncing correctly

pull/17435/head
Drashna Jael're 1 year ago
parent
commit
262d0589dc
No known key found for this signature in database GPG Key ID: DBA1FD3A860D1B11
2 changed files with 6 additions and 4 deletions
  1. +5
    -2
      keyboards/bastardkb/charybdis/charybdis.c
  2. +1
    -2
      keyboards/handwired/tractyl_manuform/tractyl_manuform.c

+ 5
- 2
keyboards/bastardkb/charybdis/charybdis.c View File

@ -160,8 +160,6 @@ void charybdis_set_pointer_dragscroll_enabled(bool enable) {
maybe_update_pointing_device_cpi(&g_charybdis_config);
}
void pointing_device_init_kb(void) { maybe_update_pointing_device_cpi(&g_charybdis_config); }
# ifndef CONSTRAIN_HID
# define CONSTRAIN_HID(value) ((value) < XY_REPORT_MIN ? XY_REPORT_MIN : ((value) > XY_REPORT_MAX ? XY_REPORT_MAX : (value)))
# endif // !CONSTRAIN_HID
@ -340,4 +338,9 @@ void matrix_init_kb(void) {
read_charybdis_config_from_eeprom(&g_charybdis_config);
matrix_init_user();
}
void keyboard_post_init_kb(void) {
maybe_update_pointing_device_cpi(&g_charybdis_config);
keyboard_post_init_user();
}
#endif // POINTING_DEVICE_ENABLE

+ 1
- 2
keyboards/handwired/tractyl_manuform/tractyl_manuform.c View File

@ -159,8 +159,6 @@ void charybdis_set_pointer_dragscroll_enabled(bool enable) {
maybe_update_pointing_device_cpi(&g_charybdis_config);
}
void pointing_device_init_kb(void) { maybe_update_pointing_device_cpi(&g_charybdis_config); }
# ifndef CONSTRAIN_HID
# define CONSTRAIN_HID(value) ((value) < XY_REPORT_MIN ? XY_REPORT_MIN : ((value) > XY_REPORT_MAX ? XY_REPORT_MAX : (value)))
# endif // !CONSTRAIN_HID
@ -339,6 +337,7 @@ void charybdis_config_sync_handler(uint8_t initiator2target_buffer_size, const v
}
void keyboard_post_init_kb(void) {
maybe_update_pointing_device_cpi(&g_charybdis_config);
transaction_register_rpc(RPC_ID_KB_CONFIG_SYNC, charybdis_config_sync_handler);
keyboard_post_init_user();


Loading…
Cancel
Save