1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-15 00:52:02 +00:00

config: Auto-unlock storage if no PIN is set. Update trezor-storage with improved ui_callback() reporting.

This commit is contained in:
Andrew Kozlik 2019-02-23 02:11:13 +01:00 committed by Pavol Rusnak
parent 2482e11112
commit db47ff4e51
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 6 additions and 1 deletions

View File

@ -365,6 +365,11 @@ void config_init(void)
} else {
config_wipe();
}
// Auto-unlock storage if no PIN is set.
if (storage_is_unlocked() == secfalse && storage_has_pin() == secfalse) {
storage_unlock(PIN_EMPTY);
}
}
void session_clear(bool lock)

@ -1 +1 @@
Subproject commit 0e897f673a2150607bae553e21604b253352644e
Subproject commit 511fc205b284605651348512c5c5c2c95a642fa1