fix newline detection in error printing

Our code check for newline in the format string, not in the parameter
This commit is contained in:
Thomas Göttgens 2023-03-31 10:41:25 +02:00
parent 3f07251d23
commit ed96321406

View File

@ -281,8 +281,8 @@ void printPacket(const char *prefix, const meshtastic_MeshPacket *p)
if (p->priority != 0)
out += DEBUG_PORT.mt_sprintf(" priority=%d", p->priority);
out += ")\n";
LOG_DEBUG("%s", out.c_str());
out += ")";
LOG_DEBUG("%s\n", out.c_str());
}
RadioInterface::RadioInterface()