From 46cd7ec7c796ff45929fc80495e374bce13da4be Mon Sep 17 00:00:00 2001 From: guido Date: Mon, 12 Jul 2021 10:21:21 +0200 Subject: [PATCH] Fix issue for txdelay > 107 (Tnx Didier, F5NPV). --- QCX-SSB.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QCX-SSB.ino b/QCX-SSB.ino index ae12403..9bb8ad2 100644 --- a/QCX-SSB.ino +++ b/QCX-SSB.ino @@ -3725,7 +3725,7 @@ void switch_rxtx(uint8_t tx_enable){ #endif //PTX lcd.setCursor(15, 1); lcd.print('D'); // note that this enables interrupts again. interrupts(); //hack.. to allow delay() - delay(F_MCU * txdelay /16000000); + delay(F_MCU / 16000000 * txdelay); noInterrupts(); //end of hack } #endif //TX_DELAY