recorder: handle initial/non-settings load

pull/3100/head
Rob Pilling 2023-11-15 21:54:04 +00:00
parent 47d33568cc
commit 22706db541
3 changed files with 4 additions and 1 deletions

View File

@ -41,3 +41,4 @@
0.32: Add cadence data to output files
0.33: Ensure that a new file is always created if the stuff that's being recorded has changed (fix #3081)
0.34: Avoid prompting when creating a new file (#3081)
0.35: Handle loading without a settings file (default record setting)

View File

@ -2,7 +2,7 @@
"id": "recorder",
"name": "Recorder",
"shortName": "Recorder",
"version": "0.34",
"version": "0.35",
"description": "Record GPS position, heart rate and more in the background, then download to your PC.",
"icon": "app.png",
"tags": "tool,outdoors,gps,widget,clkinfo",

View File

@ -9,6 +9,8 @@
settings.period = settings.period||10;
if (!settings.file || !settings.file.startsWith("recorder.log"))
settings.recording = false;
if (!settings.record)
settings.record = ["gps"];
return settings;
}