summaryrefslogtreecommitdiff
path: root/py/emitnx86.c
diff options
context:
space:
mode:
authorHans Maerki <buhtig.hans.maerki@ergoinfo.ch>2025-01-26 18:00:38 +0100
committerDamien George <damien@micropython.org>2025-01-27 10:20:40 +1100
commit0d46e45a1f72ee61a153c41aaaf6c63818ccffb0 (patch)
tree6ef909b42ecad9a3ac5fa515c43c473380971fd2 /py/emitnx86.c
parent55ca3fd67512555707304c6b68b836eb89f09d1c (diff)
tools/mpremote: Avoid initial blocking read in read_until().
If the target does not return any data then `read_until()` will block indefinitely. Fix this by making the initial read part of the general read look, which always checks `inWaiting() > 0` before reading from the serial device. Also added the UART timeout to the constructor. This is not currently used but may be used as an additional safeguard. Signed-off-by: Hans Maerki <buhtig.hans.maerki@ergoinfo.ch>
Diffstat (limited to 'py/emitnx86.c')
0 files changed, 0 insertions, 0 deletions