mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
Remove redundant code that causes CLang++ warnings
This commit is contained in:
parent
00f1d7577a
commit
19875e2b03
@ -26,7 +26,6 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
int fQSO, int nsetftx, int ntxFreq, QString azelDir)
|
int fQSO, int nsetftx, int ntxFreq, QString azelDir)
|
||||||
{
|
{
|
||||||
static int ntxFreq0=-99;
|
static int ntxFreq0=-99;
|
||||||
static bool astroBusy=false;
|
|
||||||
char cc[300];
|
char cc[300];
|
||||||
double azsun,elsun,azmoon,elmoon,azmoondx,elmoondx;
|
double azsun,elsun,azmoon,elmoon,azmoondx,elmoondx;
|
||||||
double ramoon,decmoon,dgrd,poloffset,xnr;
|
double ramoon,decmoon,dgrd,poloffset,xnr;
|
||||||
@ -44,14 +43,10 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
int nfreq=(int)datcom_.fcenter;
|
int nfreq=(int)datcom_.fcenter;
|
||||||
if(nfreq<10 or nfreq > 50000) nfreq=144;
|
if(nfreq<10 or nfreq > 50000) nfreq=144;
|
||||||
|
|
||||||
if(!astroBusy) {
|
|
||||||
astroBusy=true;
|
|
||||||
astrosub_(&nyear, &month, &nday, &uth, &nfreq, mygrid.toLatin1(),
|
astrosub_(&nyear, &month, &nday, &uth, &nfreq, mygrid.toLatin1(),
|
||||||
hisgrid.toLatin1(), &azsun, &elsun, &azmoon, &elmoon,
|
hisgrid.toLatin1(), &azsun, &elsun, &azmoon, &elmoon,
|
||||||
&azmoondx, &elmoondx, &ntsky, &ndop, &ndop00,&ramoon, &decmoon,
|
&azmoondx, &elmoondx, &ntsky, &ndop, &ndop00,&ramoon, &decmoon,
|
||||||
&dgrd, &poloffset, &xnr, 6, 6);
|
&dgrd, &poloffset, &xnr, 6, 6);
|
||||||
astroBusy=false;
|
|
||||||
}
|
|
||||||
|
|
||||||
sprintf(cc,
|
sprintf(cc,
|
||||||
"Az: %6.1f\n"
|
"Az: %6.1f\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user