From 3f4082216b3da2b0999b03625e280352dd84dbd9 Mon Sep 17 00:00:00 2001 From: NArmistead Date: Fri, 20 Feb 2026 10:18:01 -0700 Subject: [PATCH] Make GPS parse work with emulator --- gps/gps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gps/gps.c b/gps/gps.c index d9bb1d3..db7427d 100644 --- a/gps/gps.c +++ b/gps/gps.c @@ -283,7 +283,7 @@ void GPS_parse(GPS_DATA* gps_ptr, char *GPSstrParse){ /* Get message type */ char token[8]; // Needs to be 8 chars for memory alignment strncpy(token, GPSstrParse, 6); -token[7] = '\0'; +token[6] = '\0'; int idx = 7; /* Skips "$GPXXX,"*/ /* Parse by message type */