Skip to content

Commit bf26117

Browse files
committed
gnss_uorb.c: update upper->parsebuffer every new line
When the last data sent by the driver does not contain \n\r, it will cause a GAA parsing error Signed-off-by: chenzihan1 <chenzihan1@xiaomi.com>
1 parent 59f200a commit bf26117

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/sensors/gnss_uorb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ static void gnss_parse(FAR struct gnss_upperhalf_s *upper,
595595
{
596596
if (*buffer == '$')
597597
{
598+
upper->parsenext = 0;
598599
newline = true;
599600
}
600601

0 commit comments

Comments
 (0)