|
|
|
|
@ -928,7 +928,8 @@ extern int SI4432_offset_changed;
|
|
|
|
|
|
|
|
|
|
void set_freq(int V, unsigned long freq) // translate the requested frequency into a setting of the SI4432
|
|
|
|
|
{
|
|
|
|
|
if (old_freq[V] != freq) { // Do not change HW if not needed
|
|
|
|
|
if (old_freq[V] == freq) // Do not change HW if not needed
|
|
|
|
|
return;
|
|
|
|
|
if (V <= 1) {
|
|
|
|
|
SI4432_Sel = V;
|
|
|
|
|
if (freq < 240000000 || freq > 960000000) { // Impossible frequency, simply ignore, should never happen.
|
|
|
|
|
@ -980,7 +981,6 @@ void set_freq(int V, unsigned long freq) // translate the requested frequency
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
old_freq[V] = freq;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void set_switch_transmit(void) {
|
|
|
|
|
|