mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
HOG mouse/keyboard: stop sending on disconnect
This commit is contained in:
parent
6c333d061e
commit
d241e50b75
@ -390,6 +390,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
||||
case HCI_EVENT_PACKET:
|
||||
switch (hci_event_packet_get_type(packet)) {
|
||||
case HCI_EVENT_DISCONNECTION_COMPLETE:
|
||||
con_handle = HCI_CON_HANDLE_INVALID;
|
||||
printf("Disconnected\n");
|
||||
break;
|
||||
case SM_EVENT_JUST_WORKS_REQUEST:
|
||||
|
@ -293,6 +293,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
||||
case HCI_EVENT_PACKET:
|
||||
switch (hci_event_packet_get_type(packet)) {
|
||||
case HCI_EVENT_DISCONNECTION_COMPLETE:
|
||||
con_handle = HCI_CON_HANDLE_INVALID;
|
||||
printf("Disconnected\n");
|
||||
break;
|
||||
case SM_EVENT_JUST_WORKS_REQUEST:
|
||||
|
Loading…
Reference in New Issue
Block a user