firmware_deploy #3

Merged
andre.fiedler merged 37 commits from firmware_deploy into master 2026-03-13 10:06:00 +00:00
20 changed files with 1760 additions and 1807 deletions
Showing only changes of commit a23ca75d92 - Show all commits

View File

@@ -43,8 +43,13 @@ void appendJsonEscaped(String &out, const char *text) {
} // namespace
void Log(const String &message) {
const String trimmed = message.substring(0, kLogLineLength - 1);
trimmed.toCharArray(g_logLines[g_logWritePos], kLogLineLength);
snprintf(
g_logLines[g_logWritePos],
kLogLineLength,
"[%010lu] %s",
static_cast<unsigned long>(millis()),
message.c_str()
);
g_logSeq[g_logWritePos] = g_nextLogSeq++;
g_logWritePos = (g_logWritePos + 1) % kLogCapacity;
}