fix misc cppcheck things and compile time warnings (#5710)

This commit is contained in:
Thomas Göttgens
2024-12-31 15:58:59 +01:00
committed by GitHub
parent 9af8c58c40
commit 8b34c4ff05
8 changed files with 45 additions and 38 deletions

View File

@@ -13,6 +13,8 @@
#include "mesh/generated/meshtastic/remote_hardware.pb.h"
#include <sys/types.h>
static const char *errStr = "Error decoding proto for %s message!";
std::string MeshPacketSerializer::JsonSerialize(const meshtastic_MeshPacket *mp, bool shouldLog)
{
// the created jsonObj is immutable after creation, so