[SX127x] Fixed incorrect comment

This commit is contained in:
jgromes 2018-10-07 12:03:56 +02:00
parent 7bfaf3cb94
commit e83e8d4b32

View file

@ -832,7 +832,7 @@ int16_t SX127x::setFrequencyDeviation(float freqDev) {
return(state);
}
// set allowed frequency deviation
// set frequency deviation from carrier frequency
uint32_t base = 1;
uint32_t FDEV = (freqDev * (base << 19)) / 32000;
state = _mod->SPIsetRegValue(SX127X_REG_FDEV_MSB, (FDEV & 0xFF00) >> 8, 5, 0);