Fixed bug in MDx GPS driver preventing the correct reception of NMEA sentences

This commit is contained in:
Silvano Seva 2021-02-04 10:31:27 +01:00
parent 9b9c521459
commit f847631d8e
1 changed files with 1 additions and 1 deletions

View File

@ -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);