mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-03-29 05:24:56 +02:00
Feature: Migrated ArduinoJson 6 to 7
This commit is contained in:
@@ -69,9 +69,9 @@ void Utils::restartDtu()
|
||||
ESP.restart();
|
||||
}
|
||||
|
||||
bool Utils::checkJsonAlloc(const DynamicJsonDocument& doc, const char* function, const uint16_t line)
|
||||
bool Utils::checkJsonAlloc(const JsonDocument& doc, const char* function, const uint16_t line)
|
||||
{
|
||||
if (doc.capacity() == 0) {
|
||||
if (doc.overflowed()) {
|
||||
MessageOutput.printf("Alloc failed: %s, %d\r\n", function, line);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user