mirror of
https://github.com/apache/nuttx.git
synced 2026-10-18 03:28:59 +00:00
boards: cxd56xx: Fix read position in cxd5610 gnss driver
Add process to reset read position after read is complete to fix NMEA output with DC report.
This commit is contained in:
parent
05b101134a
commit
937bdcec78
1 changed files with 4 additions and 0 deletions
|
|
@ -1905,6 +1905,10 @@ static ssize_t cxd5610_gnss_read(struct file *filep, char *buffer,
|
|||
|
||||
cxd5610_gnss_buffer_unlock(priv);
|
||||
|
||||
/* Reset read position after read is complete */
|
||||
|
||||
filep->f_pos = 0;
|
||||
|
||||
cxd5610_gnss_device_unlock(priv);
|
||||
return len;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue