summaryrefslogtreecommitdiff
path: root/wasp/main.py
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 /wasp/main.py
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 'wasp/main.py')
-rw-r--r--wasp/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/main.py b/wasp/main.py
index 88fb87e..8680219 100644
--- a/wasp/main.py
+++ b/wasp/main.py
@@ -2,4 +2,4 @@
# Copyright (C) 2020 Daniel Thompson
import wasp
-wasp.system.run()
+wasp.system.schedule()