File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
connectivity/drivers/ble/FEATURE_BLE/COMPONENT_CYW43XXX Expand file tree Collapse file tree 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 {
392392 {
393393 uint16_t cmd_len = service_pack_ptr[service_pack_index + 2 ];
394394 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);
396396 if (pBuf) {
397397 memcpy (pBuf + HCI_CMD_HDR_LEN, service_pack_ptr + service_pack_index + HCI_CMD_HDR_LEN, cmd_len);
398398 inject_bdaddr (pBuf);
@@ -407,9 +407,9 @@ class HCIDriver : public CordioHCIDriver {
407407
408408 if (cmd_opcode != opcode) {
409409 // DO something in case of error
410-
411- while ( true ) ;
412-
410+
411+ return ;
412+
413413 }
414414
415415 // update service pack index
You can’t perform that action at this time.
0 commit comments