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:
SPRESENSE 2024-05-20 12:25:29 +09:00 committed by Alin Jerpelea
parent 05b101134a
commit 937bdcec78
1 changed files with 4 additions and 0 deletions

View File

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