esp32: fix NVS (#3497)

This commit is contained in:
Martin authored and Jesse Hills committed 2022-05-24 21:56:18 +12:00
1 parent b66af9fb4d
commit fb0fec1f25
1 file changed
+1 -1
+1 -1
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;
}
};