kopia lustrzana https://github.com/jgromes/RadioLib
[CC1101] Added 0x17 as valid version number (#349)
rodzic
2ccebd1fdc
commit
4086afa691
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue