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:
parent
96bd10ccf9
commit
c99ef8c9b7
@ -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},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user