esp32: fix NVS (#3497)

This commit is contained in:
Martin 2022-05-23 10:56:26 +02:00 committed by GitHub
parent 7092f7663e
commit a8ceeaa7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,7 @@ class ESP32Preferences : public ESPPreferences {
ESP_LOGV(TAG, "nvs_get_blob('%s') failed: %s", to_save.key.c_str(), esp_err_to_name(err));
return true;
}
return to_save.data == stored_data.data;
return to_save.data != stored_data.data;
}
};