diff --git a/apps/phystrax/app.js b/apps/phystrax/app.js index 9d2836d8a..4c89f02d1 100644 --- a/apps/phystrax/app.js +++ b/apps/phystrax/app.js @@ -145,10 +145,10 @@ function saveDataToCSV() { // Write data to the CSV file let fileName = "heart_rate_data.csv"; // Use consistent file name - require("Storage").write(fileName, csvContent); + var file = require("Storage").open(fileName,"a"); // Open file in append mode + file.write(csvContent); } - setWatch(function() { if (!isMeasuring) { startMeasure(); @@ -157,4 +157,4 @@ setWatch(function() { } }, BTN1, { repeat: true, edge: 'rising' }); -drawScreen(); \ No newline at end of file +drawScreen(); diff --git a/apps/phystrax/interface.html b/apps/phystrax/interface.html index 92dad7d0b..fb550cb21 100644 --- a/apps/phystrax/interface.html +++ b/apps/phystrax/interface.html @@ -4,39 +4,60 @@
+ +