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:
David Cermak
2024-03-26 14:43:30 +01:00
parent 14763888ed
commit 4bdd90cc88

View File

@ -160,6 +160,11 @@ void UartTerminal::task()
ESP_LOGW(TAG, "unknown uart event type: %d", event.type);
break;
}
} else {
uart_get_buffered_data_len(uart.port, &len);
if (len && on_read) {
on_read(nullptr, len);
}
}
}
}