Fix separated backup. Fix forgotten config_getMnemonic() in DEBUG_LINK build.

pull/25/head
andrew 6 years ago committed by Pavol Rusnak
parent 681137c2ef
commit 679174ea7a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save