forked from FOSS/BangleApps
0.21: Fix issue where a period of 1s recorded every 2s, 5s every 6s, and so on
parent
ac75110504
commit
5aa11ef71e
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue