From 33f4d048e99a4c2c92ca00d1a89cba855faa2a8b Mon Sep 17 00:00:00 2001 From: Villuton Date: Wed, 26 Mar 2025 17:19:25 +0300 Subject: [PATCH] fix --- Inc/Nmea0183Parser_Private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Inc/Nmea0183Parser_Private.h b/Inc/Nmea0183Parser_Private.h index e9200ff..d70d949 100644 --- a/Inc/Nmea0183Parser_Private.h +++ b/Inc/Nmea0183Parser_Private.h @@ -29,7 +29,11 @@ #define Nmea0183SkipToStartDelimiter(STR, STR_END) Nmea0183SkipToChar(STR,STR_END,Nmea0183StartDelimiter) #define Nmea0183SkipToCheckSumDelimiter(STR, STR_END) Nmea0183SkipToChar(STR,STR_END,Nmea0183CheckSumDelimiter) +#define NmeaParsePrepare char *end = Nmea0183SkipToCheckSumDelimiter(str, str + len);\ + char *front = str;\ + char *nextDivider = front - 1; +#define NmeaSkipToNextPortion Nmea0183ParseNextPortion(&front, &nextDivider, end); #define NMEA_ASSERT(x) if(!(x)){return 0;};