1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

hasattr hack for refresh is not needed

This commit is contained in:
Pavol Rusnak 2016-10-06 17:41:53 +02:00
parent a654b4c17d
commit 81a8f0b9bc
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
9 changed files with 10 additions and 10 deletions

View File

@ -30,4 +30,4 @@ reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=DEFAULT_BU
reboot.render()
while True:
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()

View File

@ -14,4 +14,4 @@ ui.display.text_center(120, 192, "SatoshiLabs", ui.BOLD, ui.WHITE, ui.BLACK)
ui.display.text_center(120, 215, "v0.1.1", 1, ui.GREY, ui.BLACK)
while True:
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()

View File

@ -16,4 +16,4 @@ ui.display.text_center(120, 192 + 32, "Visit TREZOR.io/start", 1, ui.WHITE, ui.B
while True:
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()

View File

@ -37,4 +37,4 @@ reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=DEFAULT_BU
reboot.render()
while True:
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()

View File

@ -63,9 +63,9 @@ cancel.render()
while True:
logo()
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()
utime.sleep(2)
fingerprint()
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()
utime.sleep(2)

View File

@ -37,4 +37,4 @@ confirm = button.Button((0, 240 - 48, 240, 48), 'Hold to confirm', normal_style=
confirm.render()
while True:
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()

View File

@ -34,4 +34,4 @@ reboot = button.Button((0, 240 - 48, 240, 48), 'Reboot', normal_style=DEFAULT_BU
reboot.render()
while True:
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()

View File

@ -19,6 +19,6 @@ while True:
ui.display.loader(p, ui.BLUE, ui.BLACK)
ui.display.text_center(120, 240 // 2 + 14 // 2, "%d%%" % (p // 10), 2, ui.WHITE, ui.BLACK)
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()
p = (p + 1) % 1000

View File

@ -58,4 +58,4 @@ cancel = button.Button((0, 240 - 48, 119, 48), 'Cancel', normal_style=CANCEL_BUT
cancel.render()
while True:
if hasattr(ui.display, 'refresh'): ui.display.refresh()
ui.display.refresh()