mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ethernet: fix potential task watch dog timeout
This commit is contained in:
parent
4454b198bb
commit
d8a9ce14d7
@ -248,8 +248,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user