Closed hp9000 closed 1 year ago
second and third value are always 0. This is because si4432.cpp line 29 is an integer division and fractional part gets lost. Result is 0 for freqcarrier in line 33.
quick fix: change "10" to "10.0" in line 29
better: force compiler to use type double by a cast:
double fPart = ((double)baseFrequencyMhz / (10 * (highBand + 1))) - 24;
Thanks for the report. Fixed.
your nickname is very nice
second and third value are always 0. This is because si4432.cpp line 29 is an integer division and fractional part gets lost. Result is 0 for freqcarrier in line 33.
quick fix: change "10" to "10.0" in line 29