mirror of
https://github.com/esphome/esphome.git
synced 2026-03-02 10:48:22 -07:00
avoid misuse
This commit is contained in:
@@ -114,7 +114,7 @@ SerializationBuffer<> JsonBuilder::serialize() {
|
||||
}
|
||||
|
||||
// Needs heap allocation - reallocate and serialize again with exact size
|
||||
result.reallocate_heap(size);
|
||||
result.reallocate_heap_(size);
|
||||
serializeJson(doc_, result.data_writable(), size + 1);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user