mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-25 17:09:44 +00:00
embed/extmod/modtrezorio: add missing secbool conversion in sbu
This commit is contained in:
parent
2de0eac7dc
commit
ba3b958612
@ -42,7 +42,7 @@ STATIC mp_obj_t mod_trezorio_SBU_make_new(const mp_obj_type_t *type, size_t n_ar
|
||||
/// Sets SBU wires to sbu1 and sbu2 values respectively
|
||||
/// '''
|
||||
STATIC mp_obj_t mod_trezorio_SBU_set(mp_obj_t self, mp_obj_t sbu1, mp_obj_t sbu2) {
|
||||
sbu_set(mp_obj_is_true(sbu1), mp_obj_is_true(sbu2));
|
||||
sbu_set(sectrue * mp_obj_is_true(sbu1), sectrue * mp_obj_is_true(sbu2));
|
||||
return mp_const_none;
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_3(mod_trezorio_SBU_set_obj, mod_trezorio_SBU_set);
|
||||
|
Loading…
Reference in New Issue
Block a user