Xtensa [patch] ESP8266 read function is non-blocking
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
When trying to wait for user input on the default serial input, read returns immediately. If no character is available in the serial buffer, a #0 is returned. This is because the low level function uart_rx_one_char is apparently non-blocking. One way to fix this is to convert the ReadChar function in esp8266.pp to loop until a non-zero character is returned. This fix has been implemented in the attached patch.
Not sure if this loop should be moved to the console unit to make it more general...
Mantis conversion info:
- Mantis ID: 38243
- Build: 47785
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 47832 (#da468719)