1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

Merge branch 'integration' into memory_api

This commit is contained in:
J. Nick Koston
2025-08-14 23:01:08 -05:00

View File

@@ -167,7 +167,6 @@ class ESP32Preferences : public ESPPreferences {
if (actual_len != to_save.data.size()) {
return true;
}
// Use unique_ptr to avoid vector overhead for temporary comparison
auto stored_data = std::make_unique<uint8_t[]>(actual_len);
err = nvs_get_blob(nvs_handle, to_save.key.c_str(), stored_data.get(), &actual_len);
if (err != 0) {