mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-17 16:46:05 +00:00
fix(core): fix emulator usb polling
[no changelog]
This commit is contained in:
parent
e29ef816af
commit
e997dcea32
@ -141,6 +141,10 @@ secbool usb_vcp_add(const usb_vcp_info_t *info) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static secbool usb_emulated_poll_read(uint8_t iface_num) {
|
static secbool usb_emulated_poll_read(uint8_t iface_num) {
|
||||||
|
if (usb_ifaces[iface_num].msg_len > 0) {
|
||||||
|
return sectrue;
|
||||||
|
}
|
||||||
|
|
||||||
struct pollfd fds[] = {
|
struct pollfd fds[] = {
|
||||||
{usb_ifaces[iface_num].sock, POLLIN, 0},
|
{usb_ifaces[iface_num].sock, POLLIN, 0},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user