Fix a couple of STM32 bugs, and add some missing mutex frees.

This commit is contained in:
Kareem
2022-06-30 16:11:16 -07:00
parent ed1fdc410e
commit 7555cd0685
4 changed files with 19 additions and 9 deletions

View File

@@ -548,7 +548,7 @@ static int ServerMemRecv(info_t* info, char* buf, int sz)
}
osSemaphoreAcquire(info->server.mutex, osWaitForever);
#else
if (osSignalWait(1, RECV_WAIT_TIMEOUT) == osEventTimeout) {
if (osSignalWait(1, RECV_WAIT_TIMEOUT).status == osEventTimeout) {
printf("Server Recv: Timeout!\n");
return WOLFSSL_CBIO_ERR_TIMEOUT;
}
@@ -644,7 +644,7 @@ static int ClientMemRecv(info_t* info, char* buf, int sz)
}
osSemaphoreAcquire(info->client.mutex, osWaitForever);
#else
if (osSignalWait(1, RECV_WAIT_TIMEOUT) == osEventTimeout) {
if (osSignalWait(1, RECV_WAIT_TIMEOUT).status == osEventTimeout) {
printf("Client Recv: Timeout!\n");
return WOLFSSL_CBIO_ERR_TIMEOUT;
}