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
This commit is contained in:
Joe Taylor 2015-05-31 12:56:50 +00:00
parent 340ec6b38a
commit 95195377c6

View File

@ -4347,6 +4347,11 @@ void MainWindow::bandHopping()
if(f4.exists()) { if(f4.exists()) {
m_cmnd=QDir::toNativeSeparators (m_appDir + "/user_hardware ") + m_band00; 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 if(m_cmnd!="") p3.start(m_cmnd); // Execute user's hardware controller
// Produce a short tuneup signal // Produce a short tuneup signal