This commit is contained in:
Crsarmv7l 2024-03-28 13:19:18 -04:00 committed by GitHub
parent 310dfc9242
commit fb35416b34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -492,9 +492,9 @@ int16_t CC1101::setRxBandwidth(float rxBw) {
int16_t CC1101::autoSetRxBandwidth() {
// Uncertainty ~ +/- 40ppm for a cheap CC1101
// Uncertainty * 2 for both transmitter and receiver
float uncertainty = (this->frequency) * 40 * 2);
float uncertainty = ((this->frequency) * 40 * 2);
uncertainty = (uncertainty/1000); //Since bitrate is in kBit
float minbw = (this->bitRate) + uncertainty);
float minbw = ((this->bitRate) + uncertainty);
int possibles[16] = {58, 68, 81, 102, 116, 135, 162, 203, 232, 270, 325, 406, 464, 541, 650, 812};