Commit 4b3f1d71 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/esp_mphal: Add tentative change to mp_hal_stdin_rx_chr() to wait IRQ.

Instead of busy-looping waiting for UART input. Not enabled by default,
needs more testing.
parent 3fe047f0
......@@ -60,7 +60,14 @@ int mp_hal_stdin_rx_chr(void) {
if (c != -1) {
return c;
#if 0
// Idles CPU but need more testing before enabling
if (!ets_loop_iter()) {
asm("waiti 0");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment