mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-05 05:15:27 +00:00
modtrezorconfig: fix has_pin
This commit is contained in:
parent
df77e74988
commit
5e643e9195
@ -47,11 +47,10 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_trezorconfig_unlock_obj, mod_trezorconfig_u
|
|||||||
/// Returns True if storage has a configured PIN, False otherwise.
|
/// Returns True if storage has a configured PIN, False otherwise.
|
||||||
/// '''
|
/// '''
|
||||||
STATIC mp_obj_t mod_trezorconfig_has_pin(void) {
|
STATIC mp_obj_t mod_trezorconfig_has_pin(void) {
|
||||||
if (storage_has_pin()) {
|
if (sectrue != storage_has_pin()) {
|
||||||
return mp_const_true;
|
|
||||||
} else {
|
|
||||||
return mp_const_false;
|
return mp_const_false;
|
||||||
}
|
}
|
||||||
|
return mp_const_true;
|
||||||
}
|
}
|
||||||
STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_trezorconfig_has_pin_obj, mod_trezorconfig_has_pin);
|
STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_trezorconfig_has_pin_obj, mod_trezorconfig_has_pin);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user