Add fix for issue #36, to be able to compile without KEYER (Tnx Adrian).

pull/41/head
guido 2020-10-31 22:54:40 +01:00
rodzic 145df47b45
commit 016d6fa6b2
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -3116,7 +3116,11 @@ void switch_rxtx(uint8_t tx_enable){
}
} else { // rx
if(!(semi_qsk_timeout)){
#ifdef KEYER
semi_qsk_timeout = millis() + ditTime * 8;
#else
semi_qsk_timeout = millis() + 8 * 8; // no keyer? assume dit-time of 20 WPM
#endif
if((mode == CW) && semi_qsk) func_ptr = dummy; else func_ptr = sdr_rx;
} else {
centiGain = _centiGain; // restore AGC setting