mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-09-03 13:47:51 -04:00
Fix a compilation error on some macOS systems.
This commit is contained in:
parent
cb70a45817
commit
df8ef88501
@ -72,7 +72,7 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
|
|
||||||
datcom_.ndop00=ndop00; //Send self Doppler to decoder, via datcom
|
datcom_.ndop00=ndop00; //Send self Doppler to decoder, via datcom
|
||||||
// qDebug() << "aa" << isec << datcom_.fcenter << nfreq << ndop00;
|
// qDebug() << "aa" << isec << datcom_.fcenter << nfreq << ndop00;
|
||||||
sprintf(cc,
|
snprintf(cc, sizeof(cc),
|
||||||
"Az: %6.1f\n"
|
"Az: %6.1f\n"
|
||||||
"El: %6.1f\n"
|
"El: %6.1f\n"
|
||||||
"MyDop: %6d\n"
|
"MyDop: %6d\n"
|
||||||
@ -140,7 +140,7 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
if(f.open(QIODevice::WriteOnly | QIODevice::Append)) {
|
if(f.open(QIODevice::WriteOnly | QIODevice::Append)) {
|
||||||
QTextStream out(&f);
|
QTextStream out(&f);
|
||||||
out << t.toString("yyyy-MMM-dd hh:mm:ss");
|
out << t.toString("yyyy-MMM-dd hh:mm:ss");
|
||||||
sprintf(cc,"%7.1f %7.1f %d %7.1f %7.1f %10.1f %7.2f\n",
|
snprintf(cc,sizeof(cc),"%7.1f %7.1f %d %7.1f %7.1f %10.1f %7.2f\n",
|
||||||
azsun,elsun,iCycle,azOffset,elOffset,xavg,10.0*log10(xavg));
|
azsun,elsun,iCycle,azOffset,elOffset,xavg,10.0*log10(xavg));
|
||||||
out << cc;
|
out << cc;
|
||||||
f.close();
|
f.close();
|
||||||
@ -168,7 +168,7 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid,
|
|||||||
if(ntxFreq != ntxFreq0) ndiff=1;
|
if(ntxFreq != ntxFreq0) ndiff=1;
|
||||||
ntxFreq0=ntxFreq;
|
ntxFreq0=ntxFreq;
|
||||||
QTextStream out(&f);
|
QTextStream out(&f);
|
||||||
sprintf(cc,"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Moon\n"
|
snprintf(cc,sizeof(cc),"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Moon\n"
|
||||||
"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Sun\n"
|
"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Sun\n"
|
||||||
"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Source\n"
|
"%2.2d:%2.2d:%2.2d,%5.1f,%5.1f,Source\n"
|
||||||
"%4d,%6d,%6d,Doppler\n"
|
"%4d,%6d,%6d,Doppler\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user