From 65398bbffa7d0c52a0677f017ed0c14e8945f60d Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 29 Jan 2019 12:12:54 -0500 Subject: [PATCH] Fix the UTC display on waterfall, for FT4 mode. --- widgets/plotter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/plotter.cpp b/widgets/plotter.cpp index 813e2bc31..60f0892c3 100644 --- a/widgets/plotter.cpp +++ b/widgets/plotter.cpp @@ -235,13 +235,15 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed) if(m_bReplot) return; if(swide[0]>1.0e29) m_line=0; + if(m_mode=="FT4" and m_line==34) m_line=0; if(m_line == painter1.fontMetrics ().height ()) { painter1.setPen(Qt::white); QString t; qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000; int n=(ms/1000) % m_TRperiod; + if(m_mode=="FT4") n=0; QDateTime t1=QDateTime::currentDateTimeUtc().addSecs(-n); - if(m_TRperiod < 60) { + if(m_TRperiod < 60 or m_mode=="FT4") { t=t1.toString("hh:mm:ss") + " " + m_rxBand; } else { t=t1.toString("hh:mm") + " " + m_rxBand;