Don't try to transmit a blank FT4 message!

This commit is contained in:
Joe Taylor 2019-01-29 11:49:11 -05:00
parent e98231d4c1
commit 6d6e2e8314

View File

@ -8696,6 +8696,8 @@ void MainWindow::ft4_tx(int ntx)
if(m_ntx == 4) ba=ui->tx4->text().toLocal8Bit(); if(m_ntx == 4) ba=ui->tx4->text().toLocal8Bit();
if(m_ntx == 5) ba=ui->tx5->currentText().toLocal8Bit(); if(m_ntx == 5) ba=ui->tx5->currentText().toLocal8Bit();
if(m_ntx == 6) ba=ui->tx6->text().toLocal8Bit(); if(m_ntx == 6) ba=ui->tx6->text().toLocal8Bit();
QString msg = QString::fromLatin1(ba.data());
if(msg.trimmed().length()==0) return; //Don't transmit a blank message
ba2msg(ba,message); ba2msg(ba,message);
int ichk=0; int ichk=0;
genft4_(message, &ichk, msgsent, const_cast<int *>(itone), 37, 37); genft4_(message, &ichk, msgsent, const_cast<int *>(itone), 37, 37);