1
0
Fork 0

Fix GPS interprestation. Thanks to BH4QBV.

ycs232-kbc
Jonathan Naylor 7 years ago
parent ebe8afef56
commit 6fd0a0a170

@ -196,8 +196,8 @@ void CGPS::transmitGPS(const unsigned char* source)
lon_deg = b - 0x76U; // 0 to 9
else if (b >= 0x6CU && b <= 0x75U)
lon_deg = 100U + (b - 0x6CU); // 100 to 109
else if (b >= 0x16U && b <= 0x6BU)
lon_deg = 110U + (b - 0x16U); // 110 to 179
else if (b >= 0x26U && b <= 0x6BU)
lon_deg = 110U + (b - 0x26U); // 110 to 179
else
return; // error/unknown
} else if (b == 0x30U) {

Loading…
Cancel
Save