mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
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>
This commit is contained in:
committed by
Alan C. Assis
parent
daf5715810
commit
258e81f248
@@ -595,6 +595,7 @@ static void gnss_parse(FAR struct gnss_upperhalf_s *upper,
|
||||
{
|
||||
if (*buffer == '$')
|
||||
{
|
||||
upper->parsenext = 0;
|
||||
newline = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user