[CC1101] Added 0x17 as valid version number (#349)
This commit is contained in:
parent
2ccebd1fdc
commit
4086afa691
2 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@ int16_t CC1101::begin(float freq, float br, float freqDev, float rxBw, int8_t po
|
||||||
bool flagFound = false;
|
bool flagFound = false;
|
||||||
while((i < 10) && !flagFound) {
|
while((i < 10) && !flagFound) {
|
||||||
int16_t version = getChipVersion();
|
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;
|
flagFound = true;
|
||||||
} else {
|
} else {
|
||||||
#ifdef RADIOLIB_DEBUG
|
#ifdef RADIOLIB_DEBUG
|
||||||
|
|
|
@ -458,6 +458,7 @@
|
||||||
// CC1101_REG_VERSION
|
// CC1101_REG_VERSION
|
||||||
#define CC1101_VERSION_CURRENT 0x14
|
#define CC1101_VERSION_CURRENT 0x14
|
||||||
#define CC1101_VERSION_LEGACY 0x04
|
#define CC1101_VERSION_LEGACY 0x04
|
||||||
|
#define CC1101_VERSION_CLONE 0x17
|
||||||
|
|
||||||
// CC1101_REG_MARCSTATE
|
// CC1101_REG_MARCSTATE
|
||||||
#define CC1101_MARC_STATE_SLEEP 0x00 // 4 0 main radio control state: sleep
|
#define CC1101_MARC_STATE_SLEEP 0x00 // 4 0 main radio control state: sleep
|
||||||
|
|
Loading…
Add table
Reference in a new issue