File tree 1 file changed +4
-4
lines changed
connectivity/drivers/ble/FEATURE_BLE/COMPONENT_CYW43XXX
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ class HCIDriver : public CordioHCIDriver {
392
392
{
393
393
uint16_t cmd_len = service_pack_ptr[service_pack_index + 2 ];
394
394
uint16_t cmd_opcode = (service_pack_ptr[service_pack_index + 1 ] << 8 ) | service_pack_ptr[service_pack_index + 0 ];
395
- uint8_t *pBuf = hciCmdAlloc (cmd_opcode, cmd_len);
395
+ uint8_t *pBuf = hciCmdAlloc (cmd_opcode, cmd_len);
396
396
if (pBuf) {
397
397
memcpy (pBuf + HCI_CMD_HDR_LEN, service_pack_ptr + service_pack_index + HCI_CMD_HDR_LEN, cmd_len);
398
398
inject_bdaddr (pBuf);
@@ -407,9 +407,9 @@ class HCIDriver : public CordioHCIDriver {
407
407
408
408
if (cmd_opcode != opcode) {
409
409
// DO something in case of error
410
-
411
- while ( true ) ;
412
-
410
+
411
+ return ;
412
+
413
413
}
414
414
415
415
// update service pack index
You can’t perform that action at this time.
0 commit comments