mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
ethernet: fix potential task watch dog timeout
This commit is contained in:
@@ -244,8 +244,8 @@ static void emac_esp32_rx_task(void *arg)
|
|||||||
uint8_t *buffer = NULL;
|
uint8_t *buffer = NULL;
|
||||||
uint32_t length = 0;
|
uint32_t length = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
// block indefinitely until some task notifies me
|
// block indefinitely until got notification from underlay event
|
||||||
ulTaskNotifyTake(pdFALSE, portMAX_DELAY);
|
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
|
||||||
do {
|
do {
|
||||||
length = ETH_MAX_PACKET_SIZE;
|
length = ETH_MAX_PACKET_SIZE;
|
||||||
buffer = malloc(length);
|
buffer = malloc(length);
|
||||||
|
Reference in New Issue
Block a user