1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

modtrezormsg: don't use delay_us_fast for stmhal

This commit is contained in:
Pavol Rusnak 2017-02-21 16:16:41 +01:00
parent 216b60d8b6
commit affb893cb1
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -149,11 +149,7 @@ STATIC mp_obj_t mod_TrezorMsg_Msg_select(mp_obj_t self, mp_obj_t timeout_us) {
if (timeout <= 0) { if (timeout <= 0) {
break; break;
} }
#if defined UNIX
mp_hal_delay_us(TICK_RESOLUTION); mp_hal_delay_us(TICK_RESOLUTION);
#else
mp_hal_delay_us_fast(TICK_RESOLUTION);
#endif
timeout -= TICK_RESOLUTION; timeout -= TICK_RESOLUTION;
} }
return mp_const_none; return mp_const_none;