[SX126x] Set SX1262 to accept SX1261 device string (#683)
This commit is contained in:
parent
7a8cadc639
commit
007d9ac2cb
2 changed files with 4 additions and 2 deletions
|
@ -12,7 +12,8 @@
|
||||||
#define RADIOLIB_SX126X_PA_CONFIG_SX1262 0x00
|
#define RADIOLIB_SX126X_PA_CONFIG_SX1262 0x00
|
||||||
|
|
||||||
//RADIOLIB_SX126X_REG_VERSION_STRING
|
//RADIOLIB_SX126X_REG_VERSION_STRING
|
||||||
#define RADIOLIB_SX1262_CHIP_TYPE 2
|
// Note: this should really be "2", however, it seems that all SX1262 devices report as SX1261
|
||||||
|
#define RADIOLIB_SX1262_CHIP_TYPE 1
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class SX1262
|
\class SX1262
|
||||||
|
|
|
@ -1860,7 +1860,8 @@ bool SX126x::findChip(uint8_t ver) {
|
||||||
RADIOLIB_DEBUG_PRINT(i + 1);
|
RADIOLIB_DEBUG_PRINT(i + 1);
|
||||||
RADIOLIB_DEBUG_PRINTLN(F(" of 10 tries) RADIOLIB_SX126X_REG_VERSION_STRING:"));
|
RADIOLIB_DEBUG_PRINTLN(F(" of 10 tries) RADIOLIB_SX126X_REG_VERSION_STRING:"));
|
||||||
_mod->hexdump((uint8_t*)version, 16, RADIOLIB_SX126X_REG_VERSION_STRING);
|
_mod->hexdump((uint8_t*)version, 16, RADIOLIB_SX126X_REG_VERSION_STRING);
|
||||||
RADIOLIB_DEBUG_PRINTLN();
|
RADIOLIB_DEBUG_PRINT(F("Expected string: "));
|
||||||
|
RADIOLIB_DEBUG_PRINTLN(versionBuff);
|
||||||
#endif
|
#endif
|
||||||
_mod->delay(10);
|
_mod->delay(10);
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue