mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-03-26 19:09:03 +01:00
Feature: Migrated ArduinoJson 6 to 7
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
#include <LittleFS.h>
|
||||
#include <string.h>
|
||||
|
||||
#define JSON_BUFFER_SIZE 6144
|
||||
|
||||
#ifndef DISPLAY_TYPE
|
||||
#define DISPLAY_TYPE 0U
|
||||
#endif
|
||||
@@ -141,7 +139,7 @@ bool PinMappingClass::init(const String& deviceMapping)
|
||||
return false;
|
||||
}
|
||||
|
||||
DynamicJsonDocument doc(JSON_BUFFER_SIZE);
|
||||
JsonDocument doc;
|
||||
// Deserialize the JSON document
|
||||
DeserializationError error = deserializeJson(doc, f);
|
||||
if (error) {
|
||||
@@ -216,4 +214,4 @@ bool PinMappingClass::isValidCmt2300Config() const
|
||||
bool PinMappingClass::isValidEthConfig() const
|
||||
{
|
||||
return _pinMapping.eth_enabled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user