Merge pull request #631 from rfquack/master

[RF69] Missing 1000.0 multipler in
This commit is contained in:
Jan Gromeš 2022-12-04 10:09:55 +01:00 committed by GitHub
commit ac5f719633
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);