1
0
Fork 0

0.21: Fix issue where a period of 1s recorded every 2s, 5s every 6s, and so on

master
Gordon Williams 2021-06-21 09:23:09 +01:00
parent ac75110504
commit 5aa11ef71e
3 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

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

View File

@ -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([