fix(bt/bluedroid): Fix HID Host connection bugs

1. Fix is_orig value inconsistency for HIDH open event
2. Fix the error state for repeat connection of the same device
This commit is contained in:
liqigan
2024-04-10 14:58:50 +08:00
parent 2ba5320112
commit 98b744c85b
6 changed files with 55 additions and 21 deletions

View File

@@ -249,6 +249,17 @@ BOOLEAN hid_known_hid_device (BD_ADDR bd_addr);
*******************************************************************************/
extern UINT8 HID_HostSetTraceLevel (UINT8 new_level);
/*******************************************************************************
**
** Function HID_HostConnectOrig
**
** Description Check if the HID Host initiates the connection
**
** Returns TRUE if the HID Host initiates the connection else FALSE
**
*******************************************************************************/
extern BOOLEAN HID_HostConnectOrig(UINT8 dev_handle);
#ifdef __cplusplus
}
#endif