Clean up two warning messages.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3469 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2013-07-09 16:05:23 +00:00
parent dc948031dd
commit bfe9e49e03
2 changed files with 15 additions and 6 deletions

View File

@ -12,7 +12,7 @@ program jt65
common/hdr/ariff,lenfile,awave,afmt,lenfmt,nfmt2,nchan2, &
nsamrate,nbytesec,nbytesam2,nbitsam2,adata,ndata
common/tracer/limtrace,lu
equivalence (ariff,ihdr)
equivalence (lenfile,ihdr(2))
nargs=iargc()
if(nargs.lt.1) then

View File

@ -1,4 +1,4 @@
//---------------------------------------------------------------- MainWindow
//--------------------------------------------------------------- MainWindow
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "devsetup.h"
@ -797,10 +797,15 @@ void MainWindow::on_actionDeviceSetup_triggered() //Setup Dialog
m_bSplit=dlg.m_bSplit;
m_bXIT=dlg.m_bXIT;
if(m_bSplit or m_bXIT) setXIT(m_txFreq);
int ret;
if(m_bRigOpen and !m_bSplit) ret=rig->setSplitFreq(MHz(m_dialFreq),RIG_VFO_B);
if(m_bRigOpen and !m_bSplit) {
int ret=rig->setSplitFreq(MHz(m_dialFreq),RIG_VFO_B);
if(ret!=RIG_OK) {
QString rt;
rt.sprintf("Setting VFO_B failed: %d",ret);
msgBox(rt);
}
}
}
}
void MainWindow::on_monitorButton_clicked() //Monitor
@ -2973,7 +2978,11 @@ void MainWindow::setXIT(int n)
if(m_bXIT) {
ret=rig->setXit((shortfreq_t)xit,RIG_VFO_TX);
// ret=rig->setSplitFreq(MHz(m_dialFreq),RIG_VFO_A);
if(ret!=RIG_OK) {
QString rt;
rt.sprintf("Setting RIG_VFO_TX failed: %d",ret);
msgBox(rt);
}
}
if(m_bSplit) ret=rig->setSplitFreq(MHz(m_dialFreq)+xit,RIG_VFO_B);
}