mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-04 05:42:34 +00:00
chore(core): add logging of iface number to thp_main_loop
This commit is contained in:
parent
69e41c2d05
commit
731550ff8d
@ -42,7 +42,7 @@ async def thp_main_loop(iface: WireInterface) -> None:
|
|||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
if __debug__ and utils.ALLOW_DEBUG_MESSAGES:
|
if __debug__ and utils.ALLOW_DEBUG_MESSAGES:
|
||||||
log.debug(__name__, "thp_main_loop")
|
log.debug(__name__, "thp_main_loop %s", str(iface.iface_num()))
|
||||||
packet_len = await read
|
packet_len = await read
|
||||||
assert packet_len == len(packet)
|
assert packet_len == len(packet)
|
||||||
iface.read(packet, 0)
|
iface.read(packet, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user