wasp: manager: Avoid spurious garbage collection
Running garbage collection when idle it a waste of power...
This commit is contained in:
parent
1f2c25a7bd
commit
3e0cb4eed5
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,8 @@ class Manager(object):
|
||||||
self.watch.backlight.set(0)
|
self.watch.backlight.set(0)
|
||||||
self.watch.display.poweroff()
|
self.watch.display.poweroff()
|
||||||
self.sleep_at = None
|
self.sleep_at = None
|
||||||
|
|
||||||
|
gc.collect()
|
||||||
else:
|
else:
|
||||||
self.watch.rtc.update()
|
self.watch.rtc.update()
|
||||||
|
|
||||||
|
@ -34,7 +36,6 @@ class Manager(object):
|
||||||
|
|
||||||
self.sleep_at = self.watch.rtc.uptime + 15
|
self.sleep_at = self.watch.rtc.uptime + 15
|
||||||
|
|
||||||
gc.collect()
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue