diff options
author | Damien George <damien@micropython.org> | 2025-05-20 16:48:38 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-06-02 17:02:30 +1000 |
commit | aaedd59b7ce68ac0b445960584fc58f657c835ad (patch) | |
tree | b18fb27b0a5353b99e7deaa2d90790cb005ebc16 /docs/esp32 | |
parent | f5d10c322ecacc6be208388fa93adba5bee6eb0c (diff) |
tools/pyboard.py: Avoid initial blocking read in read_until().
This applies the mpremote commit 0d46e45a1f72ee61a153c41aaaf6c63818ccffb0
to pyboard.py.
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: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions