mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-06-25 17:31:33 +02:00
fix(modem): Fixed UART task to check for buffered data periodically
Closes https://github.com/espressif/esp-protocols/issues/536
This commit is contained in:
@ -160,6 +160,11 @@ void UartTerminal::task()
|
|||||||
ESP_LOGW(TAG, "unknown uart event type: %d", event.type);
|
ESP_LOGW(TAG, "unknown uart event type: %d", event.type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
uart_get_buffered_data_len(uart.port, &len);
|
||||||
|
if (len && on_read) {
|
||||||
|
on_read(nullptr, len);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user