mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 15:30:55 +00:00
storage: setNoBackup does not have to have parameter
This commit is contained in:
parent
4a0f0259d1
commit
9749cb070b
@ -91,7 +91,7 @@ void reset_entropy(const uint8_t *ext_entropy, uint32_t len)
|
|||||||
sha256_Update(&ctx, ext_entropy, len);
|
sha256_Update(&ctx, ext_entropy, len);
|
||||||
sha256_Final(&ctx, int_entropy);
|
sha256_Final(&ctx, int_entropy);
|
||||||
if (no_backup) {
|
if (no_backup) {
|
||||||
storage_setNoBackup(true);
|
storage_setNoBackup();
|
||||||
} else
|
} else
|
||||||
if (skip_backup) {
|
if (skip_backup) {
|
||||||
storage_setNeedsBackup(true);
|
storage_setNeedsBackup(true);
|
||||||
|
@ -858,10 +858,10 @@ bool storage_noBackup(void)
|
|||||||
: storageRom->has_no_backup && storageRom->no_backup;
|
: storageRom->has_no_backup && storageRom->no_backup;
|
||||||
}
|
}
|
||||||
|
|
||||||
void storage_setNoBackup(bool no_backup)
|
void storage_setNoBackup(void)
|
||||||
{
|
{
|
||||||
storageUpdate.has_no_backup = true;
|
storageUpdate.has_no_backup = true;
|
||||||
storageUpdate.no_backup = no_backup;
|
storageUpdate.no_backup = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void storage_applyFlags(uint32_t flags)
|
void storage_applyFlags(uint32_t flags)
|
||||||
|
@ -144,7 +144,7 @@ bool storage_unfinishedBackup(void);
|
|||||||
void storage_setUnfinishedBackup(bool unfinished_backup);
|
void storage_setUnfinishedBackup(bool unfinished_backup);
|
||||||
|
|
||||||
bool storage_noBackup(void);
|
bool storage_noBackup(void);
|
||||||
void storage_setNoBackup(bool no_backup);
|
void storage_setNoBackup(void);
|
||||||
|
|
||||||
void storage_applyFlags(uint32_t flags);
|
void storage_applyFlags(uint32_t flags);
|
||||||
uint32_t storage_getFlags(void);
|
uint32_t storage_getFlags(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user