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
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue