Merge branch 'bugfix/ethernet_task_watchdog_timeout' into 'release/v4.0'

ethernet: fix potential task watch dog timeout (backport 4.0)

See merge request espressif/esp-idf!8743
This commit is contained in:
Angus Gratton 2020-05-14 16:21:35 +08:00
commit 3c882991b5

View file

@ -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);