[RF69] Set minimum bit rate to 0.5 kbps
This commit is contained in:
parent
7a25b27c31
commit
0a0f6979dd
2 changed files with 3 additions and 2 deletions
|
@ -538,7 +538,8 @@ int16_t RF69::getFrequency(float *freq) {
|
|||
}
|
||||
|
||||
int16_t RF69::setBitRate(float br) {
|
||||
RADIOLIB_CHECK_RANGE(br, 1.2, 300.0, RADIOLIB_ERR_INVALID_BIT_RATE);
|
||||
// datasheet says 1.2 kbps should be the smallest possible, but 0.512 works fine
|
||||
RADIOLIB_CHECK_RANGE(br, 0.5, 300.0, RADIOLIB_ERR_INVALID_BIT_RATE);
|
||||
|
||||
// check bitrate-bandwidth ratio
|
||||
if(!(br < 2000 * _rxBw)) {
|
||||
|
|
|
@ -746,7 +746,7 @@ class RF69: public PhysicalLayer {
|
|||
int16_t getFrequency(float *freq);
|
||||
|
||||
/*!
|
||||
\brief Sets bit rate. Allowed values range from 1.2 to 300.0 kbps.
|
||||
\brief Sets bit rate. Allowed values range from 0.5 to 300.0 kbps.
|
||||
|
||||
\param br Bit rate to be set in kbps.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue