1
0
Fork 0

wasp: Fix broken indention

Currently the simulator cannot run correctly because the indentation
in Manager.__init__ mixes tab and spaces. This is something CPython3
doesn't like but MicroPython is ok about.

Fix the obvious by using correct indentation.

Fixes: 889115f ("wasp: Allow app initialization to fail")
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
pull/76/head
Daniel Thompson 2020-09-22 21:14:45 +01:00
parent 6bf350a6e9
commit 7075f5689e
1 changed files with 12 additions and 12 deletions

View File

@ -116,18 +116,18 @@ class Manager():
# TODO: Eventually these should move to main.py
for app, qr in ( (ClockApp, True),
(StepCounterApp, True),
(StopwatchApp, True),
(HeartApp, True),
(FlashlightApp, False),
(SettingsApp, False),
(TestApp, False) ):
try:
self.register(app(), qr)
except:
# Let's not bring the whole device down just because there's
# an exception starting one of the apps...
pass
(StepCounterApp, True),
(StopwatchApp, True),
(HeartApp, True),
(FlashlightApp, False),
(SettingsApp, False),
(TestApp, False) ):
try:
self.register(app(), qr)
except:
# Let's not bring the whole device down just because there's
# an exception starting one of the apps...
pass
def register(self, app, quick_ring=False):
"""Register an application with the system.