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:
Joe Taylor 2013-04-25 23:40:55 +00:00
parent 37ee325aa2
commit 2c269edcff

View File

@ -2635,7 +2635,10 @@ void MainWindow::rigOpen()
rig->setConf("dtr_state","OFF");
}
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;
}
catch (const RigException &Ex) {