[CC1101] Added 0x17 as valid version number (#349)

pull/358/head
jgromes 2021-08-14 08:02:38 +02:00
rodzic 2ccebd1fdc
commit 4086afa691
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ int16_t CC1101::begin(float freq, float br, float freqDev, float rxBw, int8_t po
bool flagFound = false;
while((i < 10) && !flagFound) {
int16_t version = getChipVersion();
if((version == CC1101_VERSION_CURRENT) || (version == CC1101_VERSION_LEGACY)) {
if((version == CC1101_VERSION_CURRENT) || (version == CC1101_VERSION_LEGACY) || (version == CC1101_VERSION_CLONE)) {
flagFound = true;
} else {
#ifdef RADIOLIB_DEBUG

Wyświetl plik

@ -458,6 +458,7 @@
// CC1101_REG_VERSION
#define CC1101_VERSION_CURRENT 0x14
#define CC1101_VERSION_LEGACY 0x04
#define CC1101_VERSION_CLONE 0x17
// CC1101_REG_MARCSTATE
#define CC1101_MARC_STATE_SLEEP 0x00 // 4 0 main radio control state: sleep