From 6fd0a0a170513005c3fd85083dd09e34adebc52d Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 31 Oct 2017 09:22:34 +0000 Subject: [PATCH] Fix GPS interprestation. Thanks to BH4QBV. --- YSFGateway/GPS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YSFGateway/GPS.cpp b/YSFGateway/GPS.cpp index 0d12bb0..8d0012e 100644 --- a/YSFGateway/GPS.cpp +++ b/YSFGateway/GPS.cpp @@ -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) {