Fix bugs stopping running

sammachin-gprs
Peter Roberts 2018-09-01 23:48:08 +01:00
parent a2438ead82
commit b03327e782
1 changed files with 3 additions and 1 deletions

View File

@ -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()