[CC1101] Added bitrate caching.

This commit is contained in:
Andrea Guglielmini 2020-04-10 12:26:16 +02:00
parent c1e4be41b0
commit 1da981a7cd
2 changed files with 7 additions and 1 deletions

View file

@ -401,6 +401,11 @@ int16_t CC1101::setBitRate(float br) {
// set bit rate value
int16_t state = SPIsetRegValue(CC1101_REG_MDMCFG4, e, 3, 0);
state |= SPIsetRegValue(CC1101_REG_MDMCFG3, m);
if (state == ERR_NONE) {
_br = br;
}
return (state);
}

View file

@ -871,6 +871,7 @@ class CC1101: public PhysicalLayer {
Module* _mod;
float _freq;
float _br;
uint8_t _rawRSSI;
uint8_t _rawLQI;
uint8_t _modulation;