wasp: Manager: Fix the capture of the post-init free RAM

Fixes: b59a5b1d37 ("wasp: Manager: Rewrite the startup logic")
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2021-06-21 21:41:51 +01:00
parent b59a5b1d37
commit 586507753b

View file

@ -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: