Commit 388227e5 authored by schneider's avatar schneider
Browse files

fix(ble): Forward connection open if there a no services to discover

Fixes #238
parent a6be367f
Pipeline #5303 passed with stages
in 1 minute and 30 seconds
......@@ -264,6 +264,7 @@ void bleDiscCback(dmConnId_t connId, uint8_t status)
case APP_DISC_CFG_CONN_START:
/* no connection setup configuration for this application */
ble_epic_disc_cfg_complete();
break;
default:
......
......@@ -737,10 +737,12 @@ static void BleHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg)
/* process security-related messages */
AppSlaveSecProcDmMsg((dmEvt_t *) pMsg);
/* Needs to be before AppDiscProcDmMsg, to get DM_CONN_OPEN_IND first */
ble_epic_dm_api_event((dmEvt_t *)pMsg);
/* process discovery-related messages */
AppDiscProcDmMsg((dmEvt_t *) pMsg);
ble_epic_dm_api_event((dmEvt_t *)pMsg);
}
else if (pMsg->event >= ATT_CBACK_START && pMsg->event <= ATT_CBACK_END)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment