Skip to content

Commit

Permalink
#7 last cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
F4FXL committed Dec 31, 2021
1 parent 43f79ad commit a1a086d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion APRSGPSDIdFrameProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifdef USE_DGPS
#include <cmath>
#include <boost/algorithm/string.hpp>

Expand Down Expand Up @@ -207,4 +208,5 @@ bool CAPRSGPSDIdFrameProvider::buildAPRSFramesInt(const std::string& gateway, co
setTimeout(60U * 5U);//5 Minutes is plenty enough we aint an APRS tracker !

return true;
}
}
#endif
2 changes: 1 addition & 1 deletion APRSWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ CAPRSWriter::~CAPRSWriter()
m_array.clear();
}

void CAPRSWriter::setPortFixed(const std::string& callsign, const std::string& band, double frequency, double offset, double range, double latitude, double longitude, double agl)
void CAPRSWriter::setPort(const std::string& callsign, const std::string& band, double frequency, double offset, double range, double latitude, double longitude, double agl)
{
std::string temp = callsign;
temp.resize(LONG_CALLSIGN_LENGTH - 1U, ' ');
Expand Down
2 changes: 1 addition & 1 deletion APRSWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CAPRSWriter {

void setIdFrameProvider(CAPRSIdFrameProvider * idFrameProvider) { m_idFrameProvider = idFrameProvider; }

void setPortFixed(const std::string& callsign, const std::string& band, double frequency, double offset, double range, double latitude, double longitude, double agl);
void setPort(const std::string& callsign, const std::string& band, double frequency, double offset, double range, double latitude, double longitude, double agl);

void writeHeader(const std::string& callsign, const CHeaderData& header);

Expand Down
2 changes: 1 addition & 1 deletion DStarGatewayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool CDStarGatewayApp::createThread()
rptrConfig.band2,
rptrConfig.band3);

aprsWriter->setPortFixed(rptrConfig.callsign, rptrConfig.band, rptrConfig.frequency, rptrConfig.offset, rptrConfig.range, rptrConfig.latitude, rptrConfig.longitude, rptrConfig.agl);
aprsWriter->setPort(rptrConfig.callsign, rptrConfig.band, rptrConfig.frequency, rptrConfig.offset, rptrConfig.range, rptrConfig.latitude, rptrConfig.longitude, rptrConfig.agl);

if(!ddEnabled) ddEnabled = rptrConfig.band.length() > 1U;
}
Expand Down

0 comments on commit a1a086d

Please sign in to comment.