1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 03:48:09 +00:00

call ui.display.refresh in loop.py

This commit is contained in:
Pavol Rusnak 2016-10-04 16:33:38 +02:00
parent 8b25c88983
commit 2e2534585b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -4,6 +4,7 @@ from uheapq import heappop, heappush, heapify
from .utils import type_gen from .utils import type_gen
from . import msg from . import msg
from . import log from . import log
from . import ui
if __debug__: if __debug__:
# for performance stats # for performance stats
@ -99,6 +100,7 @@ def run_forever():
# add current delay to ring buffer for performance stats # add current delay to ring buffer for performance stats
log_delay_rb[log_delay_pos] = delay log_delay_rb[log_delay_pos] = delay
log_delay_pos = (log_delay_pos + 1) % log_delay_rb_len log_delay_pos = (log_delay_pos + 1) % log_delay_rb_len
ui.display.refresh()
message = msg.select(delay) message = msg.select(delay)
if message: if message:
handle_message(message) handle_message(message)