Skip to content

Commit

Permalink
android:issue newline before GB activity tracks
Browse files Browse the repository at this point in the history
Reference: ba7a2f7
  • Loading branch information
thyttan committed Jun 25, 2023
1 parent 60ca137 commit 22d5bdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/android/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
let recs = require("Storage").list(/^recorder\.log.*\.csv$/,{sf:true}).map(s => s.slice(12, 21));
recs = recs.slice(recs.indexOf(event.id));
recs.shift();
Bluetooth.println("");
Bluetooth.println(JSON.stringify({t:"trksList", list: recs})); // TODO: split up in multiple transmissions?
},

Expand All @@ -211,6 +212,7 @@
let log = require("Storage").open("recorder.log"+event.id+".csv","r");
let line = log.readLine();
while (line) {
Bluetooth.println("");
Bluetooth.println(JSON.stringify({t:"actTrk", log:event.id, line:line}));
line = log.readLine();
}
Expand Down

0 comments on commit 22d5bdb

Please sign in to comment.