mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
hids: don't filter subscriptions because they are not reset on disconnect
This commit is contained in:
parent
e62c502c9d
commit
9ff894608d
@ -137,19 +137,19 @@ static int att_write_callback(hci_con_handle_t con_handle, uint16_t att_handle,
|
||||
|
||||
if (att_handle == hid_boot_mouse_input_client_configuration_handle){
|
||||
uint16_t new_value = little_endian_read_16(buffer, 0);
|
||||
if (new_value == hid_boot_mouse_input_client_configuration_value) return 0;
|
||||
// if (new_value == hid_boot_mouse_input_client_configuration_value) return 0;
|
||||
hid_boot_mouse_input_client_configuration_value = new_value;
|
||||
hids_device_emit_event_with_uint8(HIDS_SUBEVENT_BOOT_MOUSE_INPUT_REPORT_ENABLE, con_handle, hid_protocol_mode);
|
||||
}
|
||||
if (att_handle == hid_boot_keyboard_input_client_configuration_handle){
|
||||
uint16_t new_value = little_endian_read_16(buffer, 0);
|
||||
if (new_value == hid_boot_keyboard_input_client_configuration_value) return 0;
|
||||
// if (new_value == hid_boot_keyboard_input_client_configuration_value) return 0;
|
||||
hid_boot_keyboard_input_client_configuration_value = new_value;
|
||||
hids_device_emit_event_with_uint8(HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE, con_handle, hid_protocol_mode);
|
||||
}
|
||||
if (att_handle == hid_report_input_client_configuration_handle){
|
||||
uint16_t new_value = little_endian_read_16(buffer, 0);
|
||||
if (new_value == hid_report_input_client_configuration_value) return 0;
|
||||
// if (new_value == hid_report_input_client_configuration_value) return 0;
|
||||
hid_report_input_client_configuration_value = new_value;
|
||||
log_info("Enable Report Input notifications: %x", new_value);
|
||||
hids_device_emit_event_with_uint8(HIDS_SUBEVENT_INPUT_REPORT_ENABLE, con_handle, hid_protocol_mode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user