summaryrefslogtreecommitdiff
path: root/tools/wasptool
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-19 19:35:49 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-19 19:57:08 (GMT)
commit3d091e342236664d9d951968bc833dd552bffce5 (patch)
treeca3fb20e176c64845b5378da1a62f85bc0da8253 /tools/wasptool
parentdf11539c29745f5592259b13320c834c3cb920fa (diff)
wasptool: Launch the console after all other arguments
This allows for an elegant iterative development approach where we upload some code than then interact with it, for example: wasptool --exec wasp/drivers/nrf_rtc.py --console rtc = RTC(watch.rtc.counter)
Diffstat (limited to 'tools/wasptool')
-rwxr-xr-xtools/wasptool8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/wasptool b/tools/wasptool
index 822ada9..62ebaa5 100755
--- a/tools/wasptool
+++ b/tools/wasptool
@@ -129,10 +129,6 @@ if __name__ == '__main__':
time.sleep(0.5)
sync(console)
- if args.console:
- console.close()
- os.execl(pynus, pynus)
-
if args.eval:
handle_eval(console, args.eval)
@@ -145,4 +141,8 @@ if __name__ == '__main__':
if args.rtc:
handle_rtc(console)
+ if args.console:
+ console.close()
+ os.execl(pynus, pynus)
+
unsync(console)