Skip to content

Commit

Permalink
boards: cxd56xx: Fix read position in cxd5610 gnss driver
Browse files Browse the repository at this point in the history
Add process to reset read position after read is complete
to fix NMEA output with DC report.
  • Loading branch information
SPRESENSE committed Jun 3, 2024
1 parent 05b1011 commit 5473a51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5473a51

Please sign in to comment.