Just update to master

pull/4/head
DiSlord 6 years ago
parent d6a9b8fc97
commit 673016bdca

@ -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 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) { if (V <= 1) {
SI4432_Sel = V; SI4432_Sel = V;
if (freq < 240000000 || freq > 960000000) { // Impossible frequency, simply ignore, should never happen. if (freq < 240000000 || freq > 960000000) { // Impossible frequency, simply ignore, should never happen.
@ -981,7 +982,6 @@ void set_freq(int V, unsigned long freq) // translate the requested frequency
} }
old_freq[V] = freq; old_freq[V] = freq;
} }
}
void set_switch_transmit(void) { void set_switch_transmit(void) {
SI4432_Write_Byte(SI4432_GPIO0_CONF, 0x1f);// Set switch to transmit SI4432_Write_Byte(SI4432_GPIO0_CONF, 0x1f);// Set switch to transmit

Loading…
Cancel
Save

Powered by TurnKey Linux.