1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

Netdump printf fix (#8215)

* Fix crash printf long getTime()

* Update several printf to printf_P
This commit is contained in:
hreintke
2021-07-17 20:50:15 +02:00
committed by GitHub
parent 25a21c3e7d
commit 09c4e33106
3 changed files with 8 additions and 8 deletions

View File

@ -251,7 +251,7 @@ size_t NetdumpIP::printTo(Print& p)
uint16_t bit = PP_NTOHS(reinterpret_cast<const uint16_t*>(rawip)[i]);
if (bit || count0 < 0)
{
n += p.printf("%x", bit);
n += p.printf_P(PSTR("%x"), bit);
if (count0 > 0)
// no more hiding 0
{