[RF69] Missing 1000.0 multipler in

This commit is contained in:
Federico Maggi 2022-12-04 00:14:32 +01:00
parent e054172f7a
commit 7b4c27b702
No known key found for this signature in database
GPG key ID: BA2EDAFB4F2486BC

View file

@ -640,7 +640,7 @@ int16_t RF69::getFrequencyDeviation(float *freqDev) {
// calculate frequency deviation from raw value obtained from register
// Fdev = Fstep * Fdev(13:0) (pag. 20 of datasheet)
*freqDev = (fdev * RADIOLIB_RF69_CRYSTAL_FREQ) /
*freqDev = (1000.0 * fdev * RADIOLIB_RF69_CRYSTAL_FREQ) /
(uint32_t(1) << RADIOLIB_RF69_DIV_EXPONENT);
return(RADIOLIB_ERR_NONE);