mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-13 23:51:49 -05:00
Set mode to USB when rig is opened in mainwindow.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3224 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
37ee325aa2
commit
2c269edcff
@ -2635,7 +2635,10 @@ void MainWindow::rigOpen()
|
|||||||
rig->setConf("dtr_state","OFF");
|
rig->setConf("dtr_state","OFF");
|
||||||
}
|
}
|
||||||
rig->open();
|
rig->open();
|
||||||
//rig->getVFO();
|
pbwidth_t bw;
|
||||||
|
rmode_t rigMode;
|
||||||
|
rigMode=rig->getMode(bw);
|
||||||
|
if(rigMode!=RIG_MODE_USB) rig->setMode(RIG_MODE_USB);
|
||||||
m_bRigOpen=true;
|
m_bRigOpen=true;
|
||||||
}
|
}
|
||||||
catch (const RigException &Ex) {
|
catch (const RigException &Ex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user