1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-12 14:16:06 +00:00

fix(core): fix emulator usb polling

[no changelog]
This commit is contained in:
tychovrahe 2025-02-06 16:05:25 +01:00 committed by M1nd3r
parent e29ef816af
commit e997dcea32

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