mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
Fix separated backup. Fix forgotten config_getMnemonic() in DEBUG_LINK build.
This commit is contained in:
parent
681137c2ef
commit
679174ea7a
@ -54,7 +54,7 @@ void fsm_msgDebugLinkGetState(const DebugLinkGetState *msg)
|
||||
|
||||
if (config_hasMnemonic()) {
|
||||
resp.has_mnemonic = true;
|
||||
strlcpy(resp.mnemonic, config_getMnemonic(), sizeof(resp.mnemonic));
|
||||
config_getMnemonic(resp.mnemonic, sizeof(resp.mnemonic));
|
||||
}
|
||||
|
||||
if (config_hasNode()) {
|
||||
|
@ -106,7 +106,6 @@ void reset_entropy(const uint8_t *ext_entropy, uint32_t len)
|
||||
memzero(int_entropy, 32);
|
||||
awaiting_entropy = false;
|
||||
|
||||
|
||||
if (skip_backup || no_backup) {
|
||||
if (no_backup) {
|
||||
config_setNoBackup();
|
||||
@ -127,7 +126,7 @@ static char current_word[10];
|
||||
// separated == true if called as a separate workflow via BackupMessage
|
||||
void reset_backup(bool separated, const char* mnemonic)
|
||||
{
|
||||
if (!config_needsBackup()) {
|
||||
if (separated && !config_needsBackup()) {
|
||||
fsm_sendFailure(FailureType_Failure_UnexpectedMessage, _("Seed already backed up"));
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user