diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-06-30 22:04:01 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-06-30 22:04:01 (GMT) |
| commit | ae5743529f82d398876456b7e175defb19a6ccfc (patch) | |
| tree | abaebb87754a952a15d7b062d36bfd9b668794e3 /tools | |
| parent | 11be7ca3280134cf4e565198f87c316179cf2dc9 (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-x | tools/wasptool | 3 |
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): |
