mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 02:58:57 +00:00
reset: fix setting of needs_backup flag
This commit is contained in:
parent
9749cb070b
commit
cb9182166e
@ -246,14 +246,14 @@ void layoutHome(void)
|
||||
oledDrawBitmap(40, 0, &bmp_logo64);
|
||||
}
|
||||
}
|
||||
if (storage_noBackup()) {
|
||||
oledBox(0, 0, 127, 8, false);
|
||||
oledDrawStringCenter(0, "NO BACKUP!", FONT_STANDARD);
|
||||
} else
|
||||
if (storage_unfinishedBackup()) {
|
||||
oledBox(0, 0, 127, 8, false);
|
||||
oledDrawStringCenter(0, "BACKUP FAILED!", FONT_STANDARD);
|
||||
} else
|
||||
if (storage_noBackup()) {
|
||||
oledBox(0, 0, 127, 8, false);
|
||||
oledDrawStringCenter(0, "NO BACKUP!", FONT_STANDARD);
|
||||
}
|
||||
if (storage_needsBackup()) {
|
||||
oledBox(0, 0, 127, 8, false);
|
||||
oledDrawStringCenter(0, "NEEDS BACKUP!", FONT_STANDARD);
|
||||
|
@ -92,8 +92,7 @@ void reset_entropy(const uint8_t *ext_entropy, uint32_t len)
|
||||
sha256_Final(&ctx, int_entropy);
|
||||
if (no_backup) {
|
||||
storage_setNoBackup();
|
||||
} else
|
||||
if (skip_backup) {
|
||||
} else {
|
||||
storage_setNeedsBackup(true);
|
||||
}
|
||||
storage_setMnemonic(mnemonic_from_data(int_entropy, strength / 8));
|
||||
|
Loading…
Reference in New Issue
Block a user