From b03327e7827043f722b56bef01c4cf820c36f3c6 Mon Sep 17 00:00:00 2001 From: Peter Roberts Date: Sat, 1 Sep 2018 23:48:08 +0100 Subject: [PATCH] Fix bugs stopping running --- home_ham/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home_ham/main.py b/home_ham/main.py index 3fb75f2..1512802 100644 --- a/home_ham/main.py +++ b/home_ham/main.py @@ -61,7 +61,6 @@ ugfx.display_image( # Draw for people to see # Draw introduction ugfx.set_default_font(ugfx.FONT_TITLE) -ugfx.Label(0, ugfx.height() - name_height - intro_height, ugfx.width(), intro_height, intro_text, justification=ugfx.Label.CENTER) # Process name name_setting = name("Set your name in the settings app") callsign_setting = callsign("Set your callsign in the settings app") @@ -98,3 +97,6 @@ while True: text += "Battery: %s%%" % int(value_battery) status.text(text) sleep_or_exit(0.5) + +ugfx.clear() +app.restart_to_default()