1
0
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:
Pavol Rusnak 2018-10-04 18:36:36 +02:00
parent 9749cb070b
commit cb9182166e
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 5 additions and 6 deletions

View File

@ -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);

View File

@ -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));