Skip to content

Commit

Permalink
fix newline detection in error printing
Browse files Browse the repository at this point in the history
Our code check for newline in the format string, not in the parameter
  • Loading branch information
caveman99 committed Mar 31, 2023
1 parent 3f07251 commit 2970c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mesh/RadioInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2970c51

Please sign in to comment.