From 307ead04345219787248ceee2cfdd4621060b4b9 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sun, 31 May 2015 12:56:50 +0000 Subject: [PATCH] Strip trailing "m" from command sent to "user_hardware" script. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5477 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 380bc3459..bcfb88699 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4347,6 +4347,11 @@ void MainWindow::bandHopping() if(f4.exists()) { m_cmnd=QDir::toNativeSeparators (m_appDir + "/user_hardware ") + m_band00; } + + int n=m_cmnd.length(); + if(m_cmnd.mid(n-1,1)=="m") { + m_cmnd=m_cmnd.mid(0,n-1); //### Temporary? ### Strip trailimg "m" + } if(m_cmnd!="") p3.start(m_cmnd); // Execute user's hardware controller // Produce a short tuneup signal