Allow transmit within 2 seconds of cycle start
This commit is contained in:
parent
f44b1154b7
commit
42a8338d1c
@ -3956,9 +3956,9 @@ void MainWindow::startTx()
|
||||
ui->rbNextFreeTextMsg->setChecked(true);
|
||||
if (m_transmitting) m_restart=true;
|
||||
|
||||
// detect if we're currently in a possible transmit cycle...and if so, wait until the next one...
|
||||
// detect if we're currently in a possible transmit cycle...and if so, wait until the next one if we're more than 2 seconds in...
|
||||
QDateTime now {QDateTime::currentDateTimeUtc()};
|
||||
int s=now.time().second();
|
||||
int s=now.addSecs(-2).time().second();
|
||||
int n=s % (2*m_TRperiod);
|
||||
if((n <= m_TRperiod && m_txFirst) || (n > m_TRperiod && !m_txFirst)){
|
||||
ui->txFirstCheckBox->setChecked(!m_txFirst);
|
||||
|
Loading…
Reference in New Issue
Block a user