Merge pull request #87 from jhoenicke/storagefix

Bugfix: restore storage.
This commit is contained in:
Pavol Rusnak 2016-05-25 01:57:39 +02:00
commit f8a743c652
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}