[SX127x] Fixed sprintf buffer size

This commit is contained in:
jgromes 2020-05-12 08:39:28 +02:00
parent a7a2dcabd2
commit 7503604765

View file

@ -992,7 +992,7 @@ bool SX127x::findChip(uint8_t ver) {
RADIOLIB_DEBUG_PRINT(i + 1); RADIOLIB_DEBUG_PRINT(i + 1);
RADIOLIB_DEBUG_PRINT(F(" of 10 tries) SX127X_REG_VERSION == ")); RADIOLIB_DEBUG_PRINT(F(" of 10 tries) SX127X_REG_VERSION == "));
char buffHex[5]; char buffHex[12];
sprintf(buffHex, "0x%02X", version); sprintf(buffHex, "0x%02X", version);
RADIOLIB_DEBUG_PRINT(buffHex); RADIOLIB_DEBUG_PRINT(buffHex);
RADIOLIB_DEBUG_PRINT(F(", expected 0x00")); RADIOLIB_DEBUG_PRINT(F(", expected 0x00"));