mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
Bugfix: restore storage.
Storage restore was broken due to my previous patch.
This commit is contained in:
parent
c691f9b5e9
commit
87bfd5a829
@ -94,7 +94,7 @@ void storage_check_flash_errors(void)
|
||||
|
||||
bool storage_from_flash(void)
|
||||
{
|
||||
if (memcmp((void *)FLASH_STORAGE_START, "stor", 4) == 0) {
|
||||
if (memcmp((void *)FLASH_STORAGE_START, "stor", 4) != 0) {
|
||||
// wrong magic
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user