Fix GPS interprestation. Thanks to BH4QBV.
This commit is contained in:
parent
ebe8afef56
commit
6fd0a0a170
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue