summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-06-21 20:41:51 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-06-21 20:41:51 (GMT)
commit586507753b7ad38b8bfd5ed233929c835a72c878 (patch)
tree5047d9fce7b9d9b46c56d42f86597f682e2d1260
parentb59a5b1d37c3ffca8cc700fad4eede2e9b830878 (diff)
wasp: Manager: Fix the capture of the post-init free RAM
Fixes: b59a5b1d37c3 ("wasp: Manager: Rewrite the startup logic") Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
-rw-r--r--wasp/wasp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py
index 155fded..541807f 100644
--- a/wasp/wasp.py
+++ b/wasp/wasp.py
@@ -144,6 +144,8 @@ class Manager():
self._scheduling = False
def secondary_init(self):
+ global free
+
if not self.app:
# Register default apps if main hasn't put anything on the quick ring
if not self.quick_ring:
@@ -242,8 +244,6 @@ class Manager():
def switch(self, app):
"""Switch to the requested application.
"""
- global free
-
if self.app:
if 'background' in dir(self.app):
try: