1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-22 19:15:43 +00:00

fix(core): fix emulator usb polling

[no changelog]
This commit is contained in:
tychovrahe 2025-02-06 16:05:25 +01:00
parent 96bd10ccf9
commit c99ef8c9b7

View File

@ -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},
};