heart 0.04: Fix memory usage when viewing HRM traces

master
Gordon Williams 2021-04-14 14:02:07 +01:00
parent 1c2e901a8d
commit 79b18bcb85
3 changed files with 7 additions and 6 deletions

View File

@ -451,7 +451,7 @@
{ "id": "heart",
"name": "Heart Rate Recorder",
"icon": "app.png",
"version":"0.03",
"version":"0.04",
"interface": "interface.html",
"description": "Application that allows you to record your heart rate. Can run in background",
"tags": "tool,health,widget",

View File

@ -2,3 +2,4 @@
0.02: Don't overwrite existing settings on app update
Clean up recordings on app removal
0.03: added graphing feature of 164 latest measurements
0.04: Fix memory usage when viewing HRM traces

View File

@ -52,8 +52,8 @@ function showMainMenu() {
updateSettings();
}
},
'View Records': viewRecords,
'Graph Records': graphRecords,
'View Records': ()=>{viewRecords()},
'Graph Records': ()=>{graphRecords()},
'< Back': ()=>{load();}
};
return E.showMenu(mainMenu);
@ -73,7 +73,7 @@ function viewRecords() {
}
if (!found)
menu["No Records Found"] = function(){};
menu['< Back'] = showMainMenu;
menu['< Back'] = ()=>{showMainMenu()};
return E.showMenu(menu);
}
@ -110,7 +110,7 @@ function viewRecord(n) {
viewRecord(n);
});
};
menu['< Back'] = viewRecords;
menu['< Back'] = ()=>{viewRecords()};
print(menu);
return E.showMenu(menu);
}
@ -130,7 +130,7 @@ function graphRecords() {
}
if (!found)
menu["No Records Found"] = function(){};
menu['< Back'] = showMainMenu;
menu['< Back'] = ()=>{showMainMenu()};
return E.showMenu(menu);
}