diff --git a/code/espurna/debug.ino b/code/espurna/debug.ino index 98192d7c..7eea7ccb 100644 --- a/code/espurna/debug.ino +++ b/code/espurna/debug.ino @@ -73,9 +73,9 @@ void _debugSend(char * message) { #if DEBUG_ADD_TIMESTAMP char buffer[strlen(timestamp) + strlen(message) + 1]; snprintf_P(buffer, sizeof(buffer), "%s%s", timestamp, message); - root["weblog"] = buffer; + root.set("weblog", buffer); #else - root["weblog"] = message; + root.set("weblog", message); #endif String out; root.printTo(out);