From f847631d8e960f1e9bb7f23842095c2f48a80e12 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Thu, 4 Feb 2021 10:31:27 +0100 Subject: [PATCH] Fixed bug in MDx GPS driver preventing the correct reception of NMEA sentences --- platform/drivers/GPS/GPS_MDx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/drivers/GPS/GPS_MDx.c b/platform/drivers/GPS/GPS_MDx.c index 31d4d461..99f49a83 100644 --- a/platform/drivers/GPS/GPS_MDx.c +++ b/platform/drivers/GPS/GPS_MDx.c @@ -151,7 +151,7 @@ int gps_getNmeaSentence(char *buf, const size_t maxLength) memset(buf, 0x00, maxLength); bufPos = 0; - maxPos = 0; + maxPos = maxLength; dataBuf = buf; NVIC_EnableIRQ(USART3_IRQn);