[RF69] Set minimum bit rate to 0.5 kbps

This commit is contained in:
jgromes 2023-01-18 18:58:26 +01:00
parent 7a25b27c31
commit 0a0f6979dd
2 changed files with 3 additions and 2 deletions

View file

@ -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)) {

View file

@ -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.