mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 03:52:16 +02:00
Added JsonError
This commit is contained in:
@ -35,9 +35,9 @@ void loadConfiguration(const char *filename, Config &config) {
|
||||
StaticJsonObject<512> root;
|
||||
|
||||
// Parse the root object
|
||||
bool success = deserializeJson(root, file);
|
||||
JsonError error = deserializeJson(root, file);
|
||||
|
||||
if (!success)
|
||||
if (error)
|
||||
Serial.println(F("Failed to read file, using default configuration"));
|
||||
|
||||
// Copy values from the JsonObject to the Config
|
||||
|
Reference in New Issue
Block a user