Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sachintiptur committed Jun 25, 2020
1 parent b8a0d3a commit cfcbf5d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/tracker/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ function storeData() {

function storeInFile() {
var csvContent = dataArray.join("\n");
now = new Date();
filename = "activity" + now.getTime()+ ".data"; //new file for each day
s.writeJSON(filename,csvContent);
//now = new Date();
// filename = "activity" + now.getTime()+ ".data"; //new file for each day
s.write(filename,csvContent);
dataFile = undefined; //save memory
}
/*sats end*/
Expand Down Expand Up @@ -311,6 +311,10 @@ function handleStep() {
function start() {
tracking = true;
//sats
now = new Date();
filename = "activity" + now.getTime()+ ".data";
s.open(filename,"a");

g.setFontAlign(-1, -1, 0);
g.setColor(0x07E0);
g.drawString(' Activity Started',2,10);
Expand Down

0 comments on commit cfcbf5d

Please sign in to comment.