ethernet: fix potential task watch dog timeout

pull/5815/head
morris 2020-05-13 16:03:00 +08:00
rodzic 6a6de506b1
commit 6442184dd8
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -244,8 +244,8 @@ static void emac_esp32_rx_task(void *arg)
uint8_t *buffer = NULL;
uint32_t length = 0;
while (1) {
// block indefinitely until some task notifies me
ulTaskNotifyTake(pdFALSE, portMAX_DELAY);
// block indefinitely until got notification from underlay event
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
do {
length = ETH_MAX_PACKET_SIZE;
buffer = malloc(length);