touch: change iface num to 255

This commit is contained in:
Jan Pochyla 2017-05-09 16:11:32 +02:00
parent 50c100bf34
commit fb398d07cb
2 changed files with 2 additions and 6 deletions

View File

@ -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:

View File

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