From 063ca7f8ab8a3cd993b2260cf9783e32c5049f9d Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 21 Mar 2023 08:59:49 +0100 Subject: [PATCH] Display error message on board --- src/lib/badger_os.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/badger_os.py b/src/lib/badger_os.py index 524dce1..d567253 100644 --- a/src/lib/badger_os.py +++ b/src/lib/badger_os.py @@ -137,8 +137,10 @@ def launch(file): except Exception as e: # If the app throws an error, catch it and display! print(e) - warning(None, str(e)) - time.sleep(4.0) + state_clear_running() + display = badger2040.Badger2040W() + warning(display, str(e)) + display.halt() # If the app exits or errors, do not relaunch! state_clear_running()