mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 21:06:50 +01:00
Bangle.js:actTrk: small refactor of return
This commit is contained in:
parent
49bd363d0f
commit
0c10edb9f2
@ -213,7 +213,6 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
|||||||
LOG.info("packetCount reset2: " + resetPacketCount);
|
LOG.info("packetCount reset2: " + resetPacketCount);
|
||||||
returnArray = new JSONArray().put(requestTrackObj).put(tracksList).put(resetPacketCount);
|
returnArray = new JSONArray().put(requestTrackObj).put(tracksList).put(resetPacketCount);
|
||||||
}
|
}
|
||||||
return returnArray;
|
|
||||||
} else { // We received a lines of the csv, now we append it to the file in storage.
|
} else { // We received a lines of the csv, now we append it to the file in storage.
|
||||||
|
|
||||||
String lines = json.getString("lines");
|
String lines = json.getString("lines");
|
||||||
@ -237,11 +236,11 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.warn("Could not write to file", e);
|
LOG.warn("Could not write to file", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG.info("packetCount continue: " + currPacketCount);
|
||||||
|
returnArray = new JSONArray().put(null).put(tracksList).put(currPacketCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LOG.info("packetCount should not be reached: " + currPacketCount);
|
|
||||||
returnArray = new JSONArray().put(null).put(tracksList).put(currPacketCount);
|
|
||||||
return returnArray;
|
return returnArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user