From 1c2aae8cb912652d4c2ae649e7efd69f3c87dab1 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Wed, 31 May 2017 18:39:37 +0200 Subject: [PATCH] modtrezormsg: recv has zero timeout --- micropython/extmod/modtrezormsg/modtrezormsg-stm32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/extmod/modtrezormsg/modtrezormsg-stm32.h b/micropython/extmod/modtrezormsg/modtrezormsg-stm32.h index dc515d3a..70a6bc63 100644 --- a/micropython/extmod/modtrezormsg/modtrezormsg-stm32.h +++ b/micropython/extmod/modtrezormsg/modtrezormsg-stm32.h @@ -13,7 +13,7 @@ void msg_init(void) 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) { return 0; }