Review comments

This commit is contained in:
jpirnay
2026-04-20 10:12:20 +02:00
parent 8941ab9a1e
commit ab9d47aac9
3 changed files with 33 additions and 17 deletions
+5 -3
View File
@@ -1267,9 +1267,11 @@ void CrossPointWebServer::handleGetSettings() const {
}
const size_t written = serializeJson(doc, output, outputSize);
const char* jsonEntry = output;
String dynBuffer;
if (written >= outputSize) {
LOG_DBG("WEB", "Skipping oversized setting JSON for: %s", s.key);
continue;
serializeJson(doc, dynBuffer);
jsonEntry = dynBuffer.c_str();
}
if (seenFirst) {
@@ -1277,7 +1279,7 @@ void CrossPointWebServer::handleGetSettings() const {
} else {
seenFirst = true;
}
result += output;
result += jsonEntry;
}
result += "]";