summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-30 22:04:01 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-06-30 22:04:01 (GMT)
commitae5743529f82d398876456b7e175defb19a6ccfc (patch)
treeabaebb87754a952a15d7b062d36bfd9b668794e3 /tools
parent11be7ca3280134cf4e565198f87c316179cf2dc9 (diff)
wasp: Switch to scheduling from interrupt
This has two useful properties. Firstly it means the watch will be maintained in the background, allowing the REPL to be used for notifications and other updates. Secondly it will save a little bit of power by reducing the work needed to handle spurious wake ups. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/wasptool3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/wasptool b/tools/wasptool
index 1897915..322ff0b 100755
--- a/tools/wasptool
+++ b/tools/wasptool
@@ -44,7 +44,8 @@ def unsync(c):
process too early then the sendline will not have completed.
"""
c.sendline('wasp.system.run()')
- c.expect('Watch is running, use Ctrl-C to stop')
+ c.expect(['Watch is running, use Ctrl-C to stop',
+ 'Watch already running in the background'])
c.send('\x18')
def paste(c, f, verbose=False, chunk=None):