Fix issue for txdelay > 107 (Tnx Didier, F5NPV).

pull/55/merge
guido 2021-07-12 10:21:21 +02:00
rodzic 52fb4fa212
commit 46cd7ec7c7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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