From c99ef8c9b7dce91b46e0c548c3408ea3e987bbd4 Mon Sep 17 00:00:00 2001 From: tychovrahe <brunam@seznam.cz> Date: Thu, 6 Feb 2025 16:05:25 +0100 Subject: [PATCH] fix(core): fix emulator usb polling [no changelog] --- core/embed/io/usb/unix/usb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/embed/io/usb/unix/usb.c b/core/embed/io/usb/unix/usb.c index 5bde28f6fe..d18f602417 100644 --- a/core/embed/io/usb/unix/usb.c +++ b/core/embed/io/usb/unix/usb.c @@ -141,6 +141,10 @@ secbool usb_vcp_add(const usb_vcp_info_t *info) { } static secbool usb_emulated_poll_read(uint8_t iface_num) { + if (usb_ifaces[iface_num].msg_len > 0) { + return sectrue; + } + struct pollfd fds[] = { {usb_ifaces[iface_num].sock, POLLIN, 0}, };