From db47ff4e515bcd3c28abffa955393a8743744e88 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Sat, 23 Feb 2019 02:11:13 +0100 Subject: [PATCH] config: Auto-unlock storage if no PIN is set. Update trezor-storage with improved ui_callback() reporting. --- firmware/config.c | 5 +++++ vendor/trezor-storage | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/config.c b/firmware/config.c index 0e6715e2fd..799cc09736 100644 --- a/firmware/config.c +++ b/firmware/config.c @@ -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) diff --git a/vendor/trezor-storage b/vendor/trezor-storage index 0e897f673a..511fc205b2 160000 --- a/vendor/trezor-storage +++ b/vendor/trezor-storage @@ -1 +1 @@ -Subproject commit 0e897f673a2150607bae553e21604b253352644e +Subproject commit 511fc205b284605651348512c5c5c2c95a642fa1