Code: Select all
static byte last_CW_Key = 0;
static long cw_tm = 0;
byte CW_Key = inCW.Read();
if (CW_Key != last_CW_Key){
if (millis() - cw_tm > CW_DELAY) {
last_CW_Key = CW_Key;
cw_tm = millis();
}
}
Code: Select all
trx.TX = Modes[trx.state.mode].tx_enable && (trx.Tune || trx.CATTX || ptt || last_CW_Key);