wasp: manager: Avoid spurious garbage collection

Running garbage collection when idle it a waste of power...
This commit is contained in:
Daniel Thompson 2020-02-03 22:45:12 +00:00
parent 1f2c25a7bd
commit 3e0cb4eed5

View file

@ -24,6 +24,8 @@ class Manager(object):
self.watch.backlight.set(0)
self.watch.display.poweroff()
self.sleep_at = None
gc.collect()
else:
self.watch.rtc.update()
@ -34,7 +36,6 @@ class Manager(object):
self.sleep_at = self.watch.rtc.uptime + 15
gc.collect()
def run(self):
while True: