fixes to settings.js
parent
97e55d22cb
commit
35f42967af
|
|
@ -3,4 +3,5 @@
|
||||||
0.06: Modified BLE Broadcasting; Includes Optical HR and Wrist Temperature
|
0.06: Modified BLE Broadcasting; Includes Optical HR and Wrist Temperature
|
||||||
0.07: Fixing storage overloaded issue
|
0.07: Fixing storage overloaded issue
|
||||||
0.08: Added scrolling to Surveys. CORESensor app added.
|
0.08: Added scrolling to Surveys. CORESensor app added.
|
||||||
0.09: Added High Temporal Accelerometry logging (x,y,z per second)
|
0.09: Added High Temporal Accelerometry logging (x,y,z per second)
|
||||||
|
0.10: Fixes to settings.js to account for optimizations in studyTasks.json
|
||||||
|
|
@ -104,9 +104,9 @@
|
||||||
function deviceSettings() {
|
function deviceSettings() {
|
||||||
var menu = { '< Back': function () { E.showMenu(mainMenuSettings()); } };
|
var menu = { '< Back': function () { E.showMenu(mainMenuSettings()); } };
|
||||||
menu[''] = { 'title': 'Devices' };
|
menu[''] = { 'title': 'Devices' };
|
||||||
Object.keys(settings.StudyTasks).forEach(key => {
|
settings.StudyTasks.forEach(task => {
|
||||||
var details = settings.StudyTasks[key];
|
if (task.btPair === undefined || !task.btPair) return;
|
||||||
if (details.btPair === undefined || !details.btPair) return;
|
let key = task.id; // Adjust based on how you identify tasks
|
||||||
let id = "bt_" + key + "_id";
|
let id = "bt_" + key + "_id";
|
||||||
if (settings[id] !== undefined) {
|
if (settings[id] !== undefined) {
|
||||||
menu["Clear " + key] = function () {
|
menu["Clear " + key] = function () {
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
menu["Pair " + key] = () => createMenuFromScan(key, settings.StudyTasks[key].btInfo.service);
|
menu["Pair " + key] = () => createMenuFromScan(key, task.btInfo.service);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return menu;
|
return menu;
|
||||||
|
|
@ -147,7 +147,7 @@
|
||||||
'CORESensor':'CORE Sensor'
|
'CORESensor':'CORE Sensor'
|
||||||
}
|
}
|
||||||
for (let key in recorderOptions) {
|
for (let key in recorderOptions) {
|
||||||
let name = recorderOptions['key'];
|
let name = recorderOptions[key];
|
||||||
menu[name] = {
|
menu[name] = {
|
||||||
value: settings.record.includes(key),
|
value: settings.record.includes(key),
|
||||||
onchange: v => {updateRecorder(key,v);}
|
onchange: v => {updateRecorder(key,v);}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "heatsuite",
|
{ "id": "heatsuite",
|
||||||
"name": "HeatSuite",
|
"name": "HeatSuite",
|
||||||
"shortName":"HeatSuite",
|
"shortName":"HeatSuite",
|
||||||
"version":"0.09",
|
"version":"0.10",
|
||||||
"description": "The smartwatch software to integrate with HeatSuite",
|
"description": "The smartwatch software to integrate with HeatSuite",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"type": "app",
|
"type": "app",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue