mirror of
https://github.com/Crocmagnon/plant-badger.git
synced 2024-11-24 10:28:01 +01:00
Display error message on board
This commit is contained in:
parent
829890ff3e
commit
063ca7f8ab
1 changed files with 4 additions and 2 deletions
|
@ -137,8 +137,10 @@ def launch(file):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# If the app throws an error, catch it and display!
|
# If the app throws an error, catch it and display!
|
||||||
print(e)
|
print(e)
|
||||||
warning(None, str(e))
|
state_clear_running()
|
||||||
time.sleep(4.0)
|
display = badger2040.Badger2040W()
|
||||||
|
warning(display, str(e))
|
||||||
|
display.halt()
|
||||||
|
|
||||||
# If the app exits or errors, do not relaunch!
|
# If the app exits or errors, do not relaunch!
|
||||||
state_clear_running()
|
state_clear_running()
|
||||||
|
|
Loading…
Reference in a new issue