From ba2b2f24da60b66f97fca9f9a1fc7f07a69e2ed7 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 5 Jul 2017 12:17:46 +0200 Subject: [PATCH] firmware: mark backup as done before giving away the mnemonic, not after --- firmware/reset.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/reset.c b/firmware/reset.c index ae00bbe83..2aa6c046f 100644 --- a/firmware/reset.c +++ b/firmware/reset.c @@ -116,6 +116,10 @@ void reset_backup(bool separated) return; } + storage.has_needs_backup = true; + storage.needs_backup = false; + storage_commit(); + int pass, word_pos, i = 0, j; for (pass = 0; pass < 2; pass++) { @@ -173,10 +177,6 @@ void reset_backup(bool separated) } } - storage.has_needs_backup = true; - storage.needs_backup = false; - storage_commit(); - if (separated) { fsm_sendSuccess(_("Seed successfully backed up")); } else {