Bangle.js:actTrk:upd cmt re fetch all then parse

This commit is contained in:
Ganblejs 2024-03-06 12:13:50 +01:00 committed by José Rebelo
parent 7734fbe4b0
commit e7f8c9e7a6
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class BangleJSActivityTrack extends BangleJSDeviceSupport {
if (!json.has("lines")) { // if no lines were sent with this json object, it signifies that the whole recorder log has been transmitted.
setLatestFetchedRecorderLog(dir, log);
parseFetchedRecorderCSV(dir, filename, log, device, context); // TODO: Parsing could be done after we fetched all recorder logs instead, making the fetching quicker and maybe less prone to user errors.
parseFetchedRecorderCSV(dir, filename, log, device, context); // I tried refactoring to parse all fetched logs in one go at the end instead. But that only gave me more troubles. This seems like a more stable approach at least in the Bangle.js case.
if (tracksList.length()==0) {
signalFetchingEnded(device, context);
int resetPacketCount = -1;