Skip to content

Commit

Permalink
android: prompt gb to clear when refetching a log
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Feb 29, 2024
1 parent 441d759 commit fe85ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/android/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
let log = require("Storage").open("recorder.log"+event.id+".csv","r");
let line = "init";// = log.readLine();

gbSend({t:"actTrk", log:event.id, line:""}); // Empty line will prompt Gadgetbridge to erase the contents of a already fetched log so we can rewrite it without keeping lines from the previous (probably failed) fetch.
while (line) {
line = log.readLine();
gbSend({t:"actTrk", log:event.id, line:line});
Expand All @@ -263,7 +264,6 @@
// }
//}
//fetchRecInterval = setInterval(sendLine, 100)


},

Expand Down

0 comments on commit fe85ce3

Please sign in to comment.