}
int ext_update_squelch(void *data) {
- set_squelch();
+ int id=GPOINTER_TO_INT(data);
+ if (id == 0 || id == 1) {
+ set_squelch(receiver[id]);
+ }
return 0;
}
if(command[2]=='0') {
int p2=atoi(&command[3]);
active_receiver->squelch=(int)((double)p2/255.0*100.0+0.5);
- set_squelch();
+ set_squelch(active_receiver);
}
} else {
}
extern void sliders_update();
-extern void set_squelch();
+extern void set_squelch(RECEIVER *rx);
extern void set_compression(TRANSMITTER *tx);
extern void show_diversity_gain();