Skip to content

Commit b64df41

Browse files
committed
Revert "Include a timeout when waiting for the cmd_resp"
This reverts commit 3a063df.
1 parent 6a6c550 commit b64df41

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Diff for: src/utility/STM32Cube_FW/shci_tl.c

+4-7
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
/* Includes ------------------------------------------------------------------*/
2222
#include "stm32_wpan_common.h"
2323

24-
#include <Arduino.h>
25-
2624
#include "stm_list.h"
2725
#include "shci_tl.h"
2826
#include "stm32_def.h"
@@ -325,12 +323,11 @@ static void OutputEvtTrace(TL_EvtPacket_t *phcievtbuffer)
325323
/* Weak implementation ----------------------------------------------------------------*/
326324
__WEAK void shci_cmd_resp_wait(uint32_t timeout)
327325
{
326+
(void)timeout;
327+
328328
CmdRspStatusFlag = SHCI_TL_CMD_RESP_WAIT;
329-
for (unsigned long start = millis(); (millis() - start) < timeout;) {
330-
if (CmdRspStatusFlag == SHCI_TL_CMD_RESP_RELEASE) {
331-
break;
332-
}
333-
}
329+
while (CmdRspStatusFlag != SHCI_TL_CMD_RESP_RELEASE);
330+
334331
return;
335332
}
336333

0 commit comments

Comments
 (0)