File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
features/FEATURE_BLE/targets/TARGET_CORDIO/stack/ble-host/sources/stack/dm Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -140,17 +140,14 @@ void dmAdvActSetData(dmAdvMsg_t *pMsg)
140140
141141 DM_TRACE_INFO1 ("dmAdvActSetData: state: %d" , dmAdvCb .advState [DM_ADV_HANDLE_DEFAULT ]);
142142
143- if (dmAdvCb .advState [DM_ADV_HANDLE_DEFAULT ] == DM_ADV_STATE_IDLE )
143+ /* set new data in HCI */
144+ if (pMsg -> apiSetData .location == DM_DATA_LOC_ADV )
144145 {
145- /* set new data in HCI */
146- if (pMsg -> apiSetData .location == DM_DATA_LOC_ADV )
147- {
148- HciLeSetAdvDataCmd (pMsg -> apiSetData .len , pMsg -> apiSetData .pData );
149- }
150- else
151- {
152- HciLeSetScanRespDataCmd (pMsg -> apiSetData .len , pMsg -> apiSetData .pData );
153- }
146+ HciLeSetAdvDataCmd (pMsg -> apiSetData .len , pMsg -> apiSetData .pData );
147+ }
148+ else
149+ {
150+ HciLeSetScanRespDataCmd (pMsg -> apiSetData .len , pMsg -> apiSetData .pData );
154151 }
155152}
156153
You can’t perform that action at this time.
0 commit comments