1
0
Fork 0

More bug fixing for CONNECT.

ycs232-kbc
Jonathan Naylor 9 years ago
parent e0e6546cc6
commit 53126f5e4e

@ -229,6 +229,8 @@ void CGPS::transmitGPS(const unsigned char* source)
float longitude = lon_deg + ((lon_min + ((float)lon_min_frac * 0.01F)) * (1.0F / 60.0F));
longitude *= lon_dir;
LogMessage("GPS Position of lat=%f long=%f", latitude, longitude);
m_sent = true;
}

@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20160517";
const char* VERSION = "20160607";
#endif

@ -208,9 +208,9 @@ void CWiresX::processAll()
WX_STATUS CWiresX::processConnect(const unsigned char* data)
{
::LogDebug("Received Connect to %5.5s from %10.10s", data + 5U, m_source + 10U);
::LogDebug("Received Connect to %5.5s from %10.10s", data, m_source + 10U);
std::string id = std::string((char*)(data + 4U), 5U);
std::string id = std::string((char*)data, 5U);
m_reflector = m_reflectors.find(id);
if (m_reflector == NULL)

@ -228,7 +228,7 @@ int CYSFGateway::run()
switch (status) {
case WXS_CONNECT: {
CYSFReflector* reflector = m_wiresX->getReflector();
LogMessage("Connect to %05u has been requested by %10.10s", reflector->m_id, buffer + 14U);
LogMessage("Connect to %5.5s has been requested by %10.10s", reflector->m_id.c_str(), buffer + 14U);
m_netNetwork->setDestination(reflector->m_address, reflector->m_port);
m_linked = true;
}

Loading…
Cancel
Save