From fb398d07cb571335fea5f814e61b2f658f650507 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Tue, 9 May 2017 16:11:32 +0200 Subject: [PATCH] touch: change iface num to 255 --- micropython/extmod/modtrezormsg/modtrezormsg.c | 2 +- src/trezor/loop.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/micropython/extmod/modtrezormsg/modtrezormsg.c b/micropython/extmod/modtrezormsg/modtrezormsg.c index b50789bc70..fc686e1ee4 100644 --- a/micropython/extmod/modtrezormsg/modtrezormsg.c +++ b/micropython/extmod/modtrezormsg/modtrezormsg.c @@ -401,7 +401,7 @@ STATIC mp_obj_t mod_TrezorMsg_Msg_send(mp_obj_t self, mp_obj_t iface, mp_obj_t m STATIC MP_DEFINE_CONST_FUN_OBJ_3(mod_TrezorMsg_Msg_send_obj, mod_TrezorMsg_Msg_send); #define TICK_RESOLUTION 1000 -#define TOUCH_IFACE 0 +#define TOUCH_IFACE 255 extern uint32_t touch_read(void); // defined in HAL /// def trezor.msg.select(timeout_us: int) -> tuple: diff --git a/src/trezor/loop.py b/src/trezor/loop.py index b8f8bb0e23..97592714e1 100644 --- a/src/trezor/loop.py +++ b/src/trezor/loop.py @@ -14,11 +14,7 @@ from micropython import const from trezor import msg from trezor import log -# message interfaces: -# 0x0000 - touch event interface -# 0x0001 - 0xFFFF - USB HID - -TOUCH = const(0) # interface +TOUCH = const(255) # interface TOUCH_START = const(1) # event TOUCH_MOVE = const(2) # event TOUCH_END = const(4) # event