FIX #180: round frequency to half the step to support half channel offsets
This commit is contained in:
@@ -126,6 +126,8 @@ uint32_t FREQUENCY_RoundToStep(uint32_t freq, uint16_t step)
|
||||
}
|
||||
if(step == 1)
|
||||
return freq;
|
||||
if(step >= 1000)
|
||||
step = step/2;
|
||||
return (freq + (step + 1) / 2) / step * step;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user