From 87bfd5a8295136dc9cdcc0715ccbcfc370b7271f Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Wed, 25 May 2016 01:14:32 +0200 Subject: [PATCH] Bugfix: restore storage. Storage restore was broken due to my previous patch. --- firmware/storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/storage.c b/firmware/storage.c index 1c539ae..4423592 100644 --- a/firmware/storage.c +++ b/firmware/storage.c @@ -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; }