1
0
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:
Jan Pochyla 2017-05-31 18:39:37 +02:00
parent 7a5377e385
commit 1c2aae8cb9

View File

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