1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

trezor.loop: export syscalls also in lowercase

TODO: use only lowercase
This commit is contained in:
Jan Pochyla 2017-05-23 12:42:22 +02:00
parent 2d452551da
commit d9170740a5

View File

@ -98,7 +98,7 @@ def run_forever():
log_delay_pos = (log_delay_pos + 1) % log_delay_rb_len
msg_entry = msg.select(delay)
if msg_entry:
if msg_entry is not None:
# message received, run tasks paused on the interface
msg_iface, *msg_value = msg_entry
msg_tasks = _paused_tasks.pop(msg_iface, ())
@ -286,3 +286,8 @@ class Wait(Syscall):
# close() or throw(), kill the children tasks and re-raise
self.exit()
raise
select = Select
sleep = Sleep
wait = Wait
signal = Signal