Move printBytes to meshUtils (#4424)

This commit is contained in:
Jonathan Bennett
2024-08-09 01:43:13 -05:00
committed by GitHub
parent a7da3537e2
commit c6a9edf8c7
3 changed files with 11 additions and 8 deletions

View File

@@ -56,4 +56,12 @@ char *strnstr(const char *s, const char *find, size_t slen)
s--;
}
return ((char *)s);
}
void printBytes(const char *label, const uint8_t *p, size_t numbytes)
{
LOG_DEBUG("%s: ", label);
for (size_t i = 0; i < numbytes; i++)
LOG_DEBUG("%02x ", p[i]);
LOG_DEBUG("\n");
}