Skip to content

Commit 5c7b765

Browse files
committed
fixed ArduinoJson compilation warning
1 parent f59a1ab commit 5c7b765

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The format follows Keep a Changelog and the project adheres to Semantic Versioni
1313
- Added `ESPStoreCodec::encodeLocalDateTime` helper.
1414
- Added `init(db, collection, key)` overloads so multiple `ESPStore` instances can share one collection safely with unique keys.
1515
- Changed `clear()` to remove only the current store key instead of dropping the entire collection.
16+
- Fixed ArduinoJson v7 explicit-constructor warning in `get()` by avoiding brace aggregate initialization of `StoreResponse`.
1617

1718
## [1.0.0] - 2026-02-05
1819
### Added

src/esp_store/store.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ DbStatus ESPStore::setDefault(JsonVariantConst value) {
5454
}
5555

5656
StoreResponse ESPStore::get() {
57-
StoreResponse res{};
57+
StoreResponse res;
5858
auto ready = ensureReady();
5959
if (!ready.ok()) {
6060
res.setStatus(ready);

0 commit comments

Comments
 (0)