mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +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_Final(&ctx, int_entropy);
|
||||
if (no_backup) {
|
||||
storage_setNoBackup(true);
|
||||
storage_setNoBackup();
|
||||
} else
|
||||
if (skip_backup) {
|
||||
storage_setNeedsBackup(true);
|
||||
|
@ -858,10 +858,10 @@ bool storage_noBackup(void)
|
||||
: storageRom->has_no_backup && storageRom->no_backup;
|
||||
}
|
||||
|
||||
void storage_setNoBackup(bool no_backup)
|
||||
void storage_setNoBackup(void)
|
||||
{
|
||||
storageUpdate.has_no_backup = true;
|
||||
storageUpdate.no_backup = no_backup;
|
||||
storageUpdate.no_backup = true;
|
||||
}
|
||||
|
||||
void storage_applyFlags(uint32_t flags)
|
||||
|
@ -144,7 +144,7 @@ bool storage_unfinishedBackup(void);
|
||||
void storage_setUnfinishedBackup(bool unfinished_backup);
|
||||
|
||||
bool storage_noBackup(void);
|
||||
void storage_setNoBackup(bool no_backup);
|
||||
void storage_setNoBackup(void);
|
||||
|
||||
void storage_applyFlags(uint32_t flags);
|
||||
uint32_t storage_getFlags(void);
|
||||
|
Loading…
Reference in New Issue
Block a user