mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-05 13:01:12 +00:00
modtrezormsg: recv has zero timeout
This commit is contained in:
parent
7a5377e385
commit
1c2aae8cb9
@ -13,7 +13,7 @@ void msg_init(void)
|
|||||||
|
|
||||||
ssize_t msg_recv(uint8_t *iface, uint8_t *buf, size_t len)
|
ssize_t msg_recv(uint8_t *iface, uint8_t *buf, size_t len)
|
||||||
{
|
{
|
||||||
int i = usb_hid_read_select(1); // 1ms timeout
|
int i = usb_hid_read_select(0);
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user