From 3191efcdccf9d75afbfcb50182a6c6768044ea5a Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Tue, 21 Mar 2017 22:11:01 -0300 Subject: [PATCH] Fix for latitude sign of GPS data --- YSFGateway/GPS.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YSFGateway/GPS.cpp b/YSFGateway/GPS.cpp index 5c68d08..8c26e5f 100644 --- a/YSFGateway/GPS.cpp +++ b/YSFGateway/GPS.cpp @@ -179,10 +179,10 @@ void CGPS::transmitGPS(const unsigned char* source) return; // error/unknown int lat_dir; - unsigned char b = m_buffer[6U] & 0xF0U; // currently a guess - if (b == 0x30U) + unsigned char b = m_buffer[8U] & 0xF0U; // currently a guess + if (b == 0x50U) lat_dir = 1; // N - else if (b == 0x50U) + else if (b == 0x30U) lat_dir = -1; // S else return; // error/unknown