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>
This commit is contained in:
parent
6bf350a6e9
commit
7075f5689e
1 changed files with 12 additions and 12 deletions
24
wasp/wasp.py
24
wasp/wasp.py
|
@ -116,18 +116,18 @@ class Manager():
|
||||||
|
|
||||||
# TODO: Eventually these should move to main.py
|
# TODO: Eventually these should move to main.py
|
||||||
for app, qr in ( (ClockApp, True),
|
for app, qr in ( (ClockApp, True),
|
||||||
(StepCounterApp, True),
|
(StepCounterApp, True),
|
||||||
(StopwatchApp, True),
|
(StopwatchApp, True),
|
||||||
(HeartApp, True),
|
(HeartApp, True),
|
||||||
(FlashlightApp, False),
|
(FlashlightApp, False),
|
||||||
(SettingsApp, False),
|
(SettingsApp, False),
|
||||||
(TestApp, False) ):
|
(TestApp, False) ):
|
||||||
try:
|
try:
|
||||||
self.register(app(), qr)
|
self.register(app(), qr)
|
||||||
except:
|
except:
|
||||||
# Let's not bring the whole device down just because there's
|
# Let's not bring the whole device down just because there's
|
||||||
# an exception starting one of the apps...
|
# an exception starting one of the apps...
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def register(self, app, quick_ring=False):
|
def register(self, app, quick_ring=False):
|
||||||
"""Register an application with the system.
|
"""Register an application with the system.
|
||||||
|
|
Loading…
Reference in a new issue