// to listen to this rx while transmitting.
//
- if (rx == active_receiver && isTransmitting() && (txmode==modeCWU || txmode==modeCWL)) {
+ if (rx == active_receiver && isTransmitting() && (txmode==modeCWU || txmode==modeCWL) && cw_keyer_sidetone_volume > 0) {
return 0;
}
if (can_transmit) {
mode=transmitter->mode;
}
- if (rx == active_receiver && isTransmitting() && (mode==modeCWU || mode==modeCWL)) {
+ if (rx == active_receiver && isTransmitting() && (mode==modeCWU || mode==modeCWL) && cw_keyer_sidetone_volume > 0) {
//
// If a CW side tone may occur, quickly return
//
int err;
int txmode=get_tx_mode();
- if (rx == active_receiver && isTransmitting() && (txmode==modeCWU || txmode==modeCWL)) {
+ if (rx == active_receiver && isTransmitting() && (txmode==modeCWU || txmode==modeCWL) && cw_keyer_sidetone_volume > 0) {
return 0;
}
// side tone
ramp=cwramp48[cw_shape];
cwsample=0.00197 * getNextSideToneSample() * cw_keyer_sidetone_volume * ramp;
- if(active_receiver->local_audio) cw_audio_write(active_receiver,cwsample);
+ if(active_receiver->local_audio && cw_keyer_sidetone_volume > 0) cw_audio_write(active_receiver,cwsample);
cw_shape_buffer48[tx->samples]=ramp;
//
// In the new protocol, we MUST maintain a constant flow of audio samples to the radio