Skip to content

Commit

Permalink
fix(core): fix emulator usb polling
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
TychoVrahe committed Feb 6, 2025
1 parent afd8294 commit 97363e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/embed/io/usb/unix/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};
Expand Down

0 comments on commit 97363e2

Please sign in to comment.