summaryrefslogtreecommitdiffstatshomepage
path: root/py/formatfloat.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-20 00:27:07 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-20 00:27:07 +0300
commitbedab235f9028562b6677fa257cd08fbf1efecca (patch)
tree34f9e46b33c15dc9509b6c4b7d8598c4664efd94 /py/formatfloat.c
parent83158e0e7f12d0454bb5efb27cd9071123e3be75 (diff)
downloadmicropython-bedab235f9028562b6677fa257cd08fbf1efecca.tar.gz
micropython-bedab235f9028562b6677fa257cd08fbf1efecca.zip
stmhal/uart: If char is not received within timeout, return EAGAIN error.
Instead of return 0, which means EOF. There's no good way to detect EOF on continuously active bus like UART, and treat timeout as just temporary unvailability of data. .read() method of UART object will return None in this case (instead of 0, which again measn EOF). This is fully compliant with unix port.
Diffstat (limited to 'py/formatfloat.c')
0 files changed, 0 insertions, 0 deletions