1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-22 11:05: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 eecfda1c58
commit a7999f8be0

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