Skip to content

Commit

Permalink
config.json: remove skipping BOM a second time
Browse files Browse the repository at this point in the history
this is probably a merge hickup, as the loop was implemented downstream,
and the Utils::skipBom() function comes from upstream.
  • Loading branch information
schlimmchen committed Nov 29, 2024
1 parent 6aea4ad commit a4db017
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,13 +485,6 @@ bool ConfigurationClass::read()
File f = LittleFS.open(CONFIG_FILENAME, "r", false);
Utils::skipBom(f);

// skip Byte Order Mask (BOM). valid JSON docs always start with '{' or '['.
while (f.available() > 0) {
int c = f.peek();
if (c == '{' || c == '[') { break; }
f.read();
}

JsonDocument doc;

// Deserialize the JSON document
Expand Down

0 comments on commit a4db017

Please sign in to comment.