Skip to content

Commit

Permalink
0.21: Fix issue where a period of 1s recorded every 2s, 5s every 6s, …
Browse files Browse the repository at this point in the history
…and so on
  • Loading branch information
gfwilliams committed Jun 21, 2021
1 parent ac75110 commit 5aa11ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps.json
Expand Up @@ -457,7 +457,7 @@
{ "id": "gpsrec",
"name": "GPS Recorder",
"icon": "app.png",
"version":"0.20",
"version":"0.21",
"interface": "interface.html",
"description": "Application that allows you to record a GPS track. Can run in background",
"tags": "tool,outdoors,gps,widget",
Expand Down
1 change: 1 addition & 0 deletions apps/gpsrec/ChangeLog
Expand Up @@ -22,3 +22,4 @@
0.18: Period counter now uses GPS time rather than counting packets (allows use with GPS Setup)
0.19: Fix memory usage issues inside track viewer app
0.20: Add documentation to explain time needed for getting a time fix
0.21: Fix issue where a period of 1s recorded every 2s, 5s every 6s, and so on
2 changes: 1 addition & 1 deletion apps/gpsrec/widget.js
Expand Up @@ -29,7 +29,7 @@
var period = 1000000;
if (lastFixTime!==undefined)
period = fix.time.getTime() - lastFixTime;
if (period > settings.period*1000) {
if (period+500 > settings.period*1000) { // round up
lastFixTime = fix.time.getTime();
try {
if (gpsTrack) gpsTrack.write([
Expand Down

0 comments on commit 5aa11ef

Please sign in to comment.