1
0
Fork 0

accellog, dont show decimal places for seconds, set Exit as first menu option

master
hughbarney 2021-10-06 23:47:09 +01:00
parent 45b5332c3c
commit e6d4573f70
3 changed files with 6 additions and 5 deletions

View File

@ -2413,7 +2413,7 @@
"name": "Acceleration Logger",
"shortName":"Accel Log",
"icon": "app.png",
"version":"0.02",
"version":"0.03",
"interface": "interface.html",
"description": "Logs XYZ acceleration data to a CSV file that can be downloaded to your PC",
"tags": "outdoor,b2",

View File

@ -1,2 +1,3 @@
0.01: New App!
0.02: Use the new multiplatform 'Layout' library
0.03: Exit as first menu option, dont show decimal places for seconds

View File

@ -8,6 +8,9 @@ function getFileName(n) {
function showMenu() {
var menu = {
"" : { title : "Accel Logger" },
"Exit" : function() {
load();
},
"File No" : {
value : fileNumber,
min : 0,
@ -21,9 +24,6 @@ function showMenu() {
"View Logs" : function() {
viewLogs();
},
"Exit" : function() {
load();
},
};
E.showMenu(menu);
}
@ -34,7 +34,7 @@ function viewLog(n) {
var records = 0, l = "", ll="";
while ((l=f.readLine())!==undefined) {records++;ll=l;}
var length = 0;
if (ll) length = (ll.split(",")[0]|0)/1000;
if (ll) length = Math.round( (ll.split(",")[0]|0)/1000 );
var menu = {
"" : { title : "Log "+n }