summaryrefslogtreecommitdiff
path: root/wasp/boards/simulator/watch.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-12 21:35:45 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-13 16:07:24 (GMT)
commit784c9bb36d29457ddb3a5ef5af55918e1f4cd93c (patch)
treee44d31b9f8e2402b999555d0eae8ac6ad7b4fa3d /wasp/boards/simulator/watch.py
parent338925b4a8e8d7ce54d0ac7e6c9c7b3bd6110737 (diff)
apps: testapp: Automatically report free memory
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/simulator/watch.py')
-rw-r--r--wasp/boards/simulator/watch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wasp/boards/simulator/watch.py b/wasp/boards/simulator/watch.py
index 98d9246..5aead3f 100644
--- a/wasp/boards/simulator/watch.py
+++ b/wasp/boards/simulator/watch.py
@@ -188,3 +188,6 @@ vibrator = Vibrator(Pin('MOTOR', Pin.OUT, value=0), active_low=True)
def connected():
return not (int(rtc.uptime / 30) & 1)
+
+# Free memory cannot be measured on the simulator
+free = 0