Skip to content

Commit

Permalink
DELIA-67545 :Gamepad is disconnected and autoconnect is off
Browse files Browse the repository at this point in the history
Reason for change: skipped posting the connection completion event after disconnection until
UI initiates the connect wrapper
Test Procedure: Follow the steps in the ticket description
Risks: Low
Priority: P1
  • Loading branch information
tharun-kumarv authored Feb 24, 2025
1 parent dd391d3 commit 73dc897
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ifce/btrMgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -9164,7 +9164,12 @@ btrMgr_DeviceStatusCb (
else if ((lstEventMessage.m_pairedDevice.m_deviceType == BTRMGR_DEVICE_TYPE_HID) ||
(lstEventMessage.m_pairedDevice.m_deviceType == BTRMGR_DEVICE_TYPE_HID_GAMEPAD)) {
BTRMGRLOG_DEBUG("HID Device Found ui16DevAppearanceBleSpec - %d \n",p_StatusCB->ui16DevAppearanceBleSpec);
if(ghBTRMgrDevHdlLastDisconnected == lstEventMessage.m_pairedDevice.m_deviceHandle)
/* Skipped posting the connection completion event here if the device tries to auto-connect
* post disconnection from UI, Based on the connect wrapper initiated from UI connection
* completion event will be posted.
*/
if ((ghBTRMgrDevHdlLastDisconnected == lstEventMessage.m_pairedDevice.m_deviceHandle) ||
(p_StatusCB->eDevicePrevState == enBTRCoreDevStDisconnected))
break;
if ((p_StatusCB->ui16DevAppearanceBleSpec == BTRMGR_HID_GAMEPAD_LE_APPEARANCE) &&
(enBTRCoreDevStLost == p_StatusCB->eDevicePrevState) &&
Expand Down

0 comments on commit 73dc897

Please sign in to comment.