esp32: fix NVS (#3497)

This commit is contained in:
Martin 2022-05-23 10:56:26 +02:00 committed by Jesse Hills
parent b66af9fb4d
commit fb0fec1f25
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

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