mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 14:48:46 -05:00
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:
parent
340ec6b38a
commit
95195377c6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user