mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00
fix newline detection in error printing
Our code check for newline in the format string, not in the parameter
This commit is contained in:
parent
3f07251d23
commit
ed96321406
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user