[RF69] Set minimum bit rate to 0.5 kbps

pull/674/head
jgromes 2023-01-18 18:58:26 +01:00
rodzic 7a25b27c31
commit 0a0f6979dd
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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