From f91e8e3cf1973057db79466386ab168d398d9f85 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Thu, 29 Sep 2022 14:30:09 +0200 Subject: [PATCH] Fix a bug that caused wrong frequencies to be written to ALL.TXT for Tx. --- widgets/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 5ccdf9812..b59525ab6 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -9763,7 +9763,11 @@ void MainWindow::write_all(QString txRx, QString message) auto time = QDateTime::currentDateTimeUtc (); if( txRx=="Rx" && !m_bFastMode ) time=m_dateTimeSeqStart; - t = t.asprintf("%10.3f ",m_freqNominalPeriod/1.e6); // prevent writing of wrong frequencies + if (txRx=="Rx") { + t = t.asprintf("%10.3f ",m_freqNominalPeriod/1.e6); // prevent writing of wrong frequencies + } else { + t = t.asprintf("%10.3f ",m_freqNominal/1.e6); + } if (m_diskData) { if (m_fileDateTime.size()==11) { line=m_fileDateTime + " " + t + txRx + " " + mode_string + msg;