From d1149c53e68ef79292486368e2b01da408422ab4 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 26 Jan 2016 16:21:44 +0300 Subject: [PATCH] Remove UART register reference from HardwareSerial --- cores/esp8266/HardwareSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/HardwareSerial.cpp b/cores/esp8266/HardwareSerial.cpp index f15782607..fb9019a2c 100644 --- a/cores/esp8266/HardwareSerial.cpp +++ b/cores/esp8266/HardwareSerial.cpp @@ -122,7 +122,7 @@ int HardwareSerial::available(void) result += 1; } if (!result) { - optimistic_yield(USD(_uart_nr) / 128); + optimistic_yield(10000); } return result; }