mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
preen
This commit is contained in:
@@ -65,10 +65,10 @@ class JsonBuilder {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
#ifdef USE_PSRAM
|
#ifdef USE_PSRAM
|
||||||
SpiRamAllocator allocator_; // Just a regular member on the stack!
|
SpiRamAllocator allocator_;
|
||||||
JsonDocument doc_{&allocator_}; // Initialize with allocator
|
JsonDocument doc_{&allocator_};
|
||||||
#else
|
#else
|
||||||
JsonDocument doc_; // Default initialization
|
JsonDocument doc_;
|
||||||
#endif
|
#endif
|
||||||
JsonObject root_;
|
JsonObject root_;
|
||||||
bool root_created_{false};
|
bool root_created_{false};
|
||||||
|
|||||||
Reference in New Issue
Block a user