Fix ()
This commit is contained in:
parent
310dfc9242
commit
fb35416b34
1 changed files with 2 additions and 2 deletions
|
@ -492,9 +492,9 @@ int16_t CC1101::setRxBandwidth(float rxBw) {
|
||||||
int16_t CC1101::autoSetRxBandwidth() {
|
int16_t CC1101::autoSetRxBandwidth() {
|
||||||
// Uncertainty ~ +/- 40ppm for a cheap CC1101
|
// Uncertainty ~ +/- 40ppm for a cheap CC1101
|
||||||
// Uncertainty * 2 for both transmitter and receiver
|
// 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
|
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};
|
int possibles[16] = {58, 68, 81, 102, 116, 135, 162, 203, 232, 270, 325, 406, 464, 541, 650, 812};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue