1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00
This commit is contained in:
J. Nick Koston
2025-09-15 21:47:18 -05:00
parent bd11ffd395
commit 192e935ef2

View File

@@ -65,10 +65,10 @@ class JsonBuilder {
private:
#ifdef USE_PSRAM
SpiRamAllocator allocator_; // Just a regular member on the stack!
JsonDocument doc_{&allocator_}; // Initialize with allocator
SpiRamAllocator allocator_;
JsonDocument doc_{&allocator_};
#else
JsonDocument doc_; // Default initialization
JsonDocument doc_;
#endif
JsonObject root_;
bool root_created_{false};