1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

reset: don't show internal entropy when skip_backup is set

This commit is contained in:
Pavol Rusnak 2018-10-11 15:24:40 +02:00
parent b0e879b30e
commit 96cf9e9065
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -44,7 +44,7 @@ void reset_init(bool display_random, uint32_t _strength, bool passphrase_protect
skip_backup = _skip_backup;
no_backup = _no_backup;
if (display_random && no_backup) {
if (display_random && (skip_backup || no_backup)) {
fsm_sendFailure(FailureType_Failure_ProcessError, "Can't show internal entropy when no_backup is used");
layoutHome();
return;