[SX127x] Fixed sprintf buffer size
This commit is contained in:
parent
a7a2dcabd2
commit
7503604765
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue