[SX127x] Set minimum bit rate to 0.5 kbps (#665)
This commit is contained in:
parent
0a0f6979dd
commit
91d42ebf0e
2 changed files with 4 additions and 3 deletions
|
@ -823,10 +823,11 @@ int16_t SX127x::setBitRate(float br) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// check allowed bit rate
|
// check allowed bit rate
|
||||||
|
// datasheet says 1.2 kbps should be the smallest possible, but 0.512 works fine
|
||||||
if(_ook) {
|
if(_ook) {
|
||||||
RADIOLIB_CHECK_RANGE(br, 1.2, 32.768002, RADIOLIB_ERR_INVALID_BIT_RATE); // Found that 32.768 is 32.768002
|
RADIOLIB_CHECK_RANGE(br, 0.5, 32.768002, RADIOLIB_ERR_INVALID_BIT_RATE); // Found that 32.768 is 32.768002
|
||||||
} else {
|
} else {
|
||||||
RADIOLIB_CHECK_RANGE(br, 1.2, 300.0, RADIOLIB_ERR_INVALID_BIT_RATE);
|
RADIOLIB_CHECK_RANGE(br, 0.5, 300.0, RADIOLIB_ERR_INVALID_BIT_RATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set mode to STANDBY
|
// set mode to STANDBY
|
||||||
|
|
|
@ -902,7 +902,7 @@ class SX127x: public PhysicalLayer {
|
||||||
float getDataRate() const;
|
float getDataRate() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Sets FSK bit rate. Allowed values range from 1.2 to 300 kbps. Only available in FSK mode.
|
\brief Sets FSK bit rate. Allowed values range from 0.5 to 300 kbps. Only available in FSK mode.
|
||||||
|
|
||||||
\param br Bit rate to be set (in kbps).
|
\param br Bit rate to be set (in kbps).
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue