summaryrefslogtreecommitdiffstatshomepage
path: root/docs/pyboard
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-06-15 23:28:04 +0100
committerDamien George <damien.p.george@gmail.com>2015-06-15 23:28:04 +0100
commitd59ca4efdbcf572b9f77b8e5b045c939181a3089 (patch)
treef98241a876dd667040c24ea373a3293fa369c145 /docs/pyboard
parent3ce212e0a67424c4c89c273e7509be84dc30a172 (diff)
downloadmicropython-d59ca4efdbcf572b9f77b8e5b045c939181a3089.tar.gz
micropython-d59ca4efdbcf572b9f77b8e5b045c939181a3089.zip
tools/pyboard.py: Change logic for when raw ">" prompt is parsed.
In raw REPL ">" indicates the prompt. We originally read this character upon entering the raw REPL, and after reading the last bit of the output. This patch changes the logic so the ">" is read only just before trying to send the next command. To make this work (and as an added feature) the input buffer is now flushed upon entering raw REPL. The main reason for this change is so that pyboard.py recognises the EOF when sys.exit() is called on the pyboard. Ie, if you run pyboard.py with a script that calls sys.exit(), then pyboard.py will exit after the sys.exit() is called.
Diffstat (limited to 'docs/pyboard')
0 files changed, 0 insertions, 0 deletions