From c747e98bdab1392f9a85c661b1a4a690f02aa3a0 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 20 Jul 2021 11:45:12 -0400 Subject: [PATCH] Include Tx mode in entries to map65_tx.log. --- map65/mainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/map65/mainwindow.cpp b/map65/mainwindow.cpp index 41dd30ef9..beeed7021 100644 --- a/map65/mainwindow.cpp +++ b/map65/mainwindow.cpp @@ -1556,11 +1556,13 @@ void MainWindow::guiUpdate() msgsent[22]=0; if(m_restart) { + QString t=" Tx " + m_modeTx + " "; + t=t.left(11); QFile f("map65_tx.log"); f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append); QTextStream out(&f); out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm") - << " Tx message: " << QString::fromLatin1(msgsent) + << t << QString::fromLatin1(msgsent) #if QT_VERSION >= QT_VERSION_CHECK (5, 15, 0) << Qt::endl #else @@ -1585,11 +1587,13 @@ void MainWindow::guiUpdate() m_transmitting=true; m_wide_graph_window->enableSetRxHardware(false); + QString t=" Tx " + m_modeTx + " "; + t=t.left(11); QFile f("map65_tx.log"); f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append); QTextStream out(&f); out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm") - << " Tx message: " << QString::fromLatin1(msgsent) + << t << QString::fromLatin1(msgsent) #if QT_VERSION >= QT_VERSION_CHECK (5, 15, 0) << Qt::endl #else