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:
parent
216b60d8b6
commit
affb893cb1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user