diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-12-12 21:35:45 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-12-13 16:07:24 (GMT) |
| commit | 784c9bb36d29457ddb3a5ef5af55918e1f4cd93c (patch) | |
| tree | e44d31b9f8e2402b999555d0eae8ac6ad7b4fa3d /wasp/boards/pinetime | |
| parent | 338925b4a8e8d7ce54d0ac7e6c9c7b3bd6110737 (diff) | |
apps: testapp: Automatically report free memory
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/pinetime')
| -rw-r--r-- | wasp/boards/pinetime/watch.py.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wasp/boards/pinetime/watch.py.in b/wasp/boards/pinetime/watch.py.in index fbda41e..6db9537 100644 --- a/wasp/boards/pinetime/watch.py.in +++ b/wasp/boards/pinetime/watch.py.in @@ -13,6 +13,7 @@ from drivers.nrf_rtc import RTC rtc = RTC(RTCounter(1, mode=RTCounter.PERIODIC, period=1, callback=_callback)) rtc.counter.start() +import gc import os import time @@ -125,3 +126,6 @@ try: except: drawable.string("FAILED", 0, 136, width=240) backlight.set(1) + +gc.collect() +free = gc.mem_free() |
