1
0
Fork 0

Fix for latitude sign of GPS data

ycs232-kbc
Andy CA6JAU 8 years ago
parent 7ffa22fba7
commit 3191efcdcc

@ -179,10 +179,10 @@ void CGPS::transmitGPS(const unsigned char* source)
return; // error/unknown return; // error/unknown
int lat_dir; int lat_dir;
unsigned char b = m_buffer[6U] & 0xF0U; // currently a guess unsigned char b = m_buffer[8U] & 0xF0U; // currently a guess
if (b == 0x30U) if (b == 0x50U)
lat_dir = 1; // N lat_dir = 1; // N
else if (b == 0x50U) else if (b == 0x30U)
lat_dir = -1; // S lat_dir = -1; // S
else else
return; // error/unknown return; // error/unknown

Loading…
Cancel
Save