diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-14 14:02:28 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-14 14:02:28 +1200 |
commit | 0f22f82f58a2da921caa70667c4d3dea479aa275 (patch) | |
tree | f134e0b4708c3ec99f3955bfe1e4900af542236a /src | |
parent | f9e3af42ebd08b83522574b79617d89cd54ab486 (diff) | |
download | traccar-server-0f22f82f58a2da921caa70667c4d3dea479aa275.tar.gz traccar-server-0f22f82f58a2da921caa70667c4d3dea479aa275.tar.bz2 traccar-server-0f22f82f58a2da921caa70667c4d3dea479aa275.zip |
Fix Atrack bulk upload issue
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/AtrackProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AtrackProtocolDecoder.java b/src/org/traccar/protocol/AtrackProtocolDecoder.java index b2753f93b..4a2d4b848 100644 --- a/src/org/traccar/protocol/AtrackProtocolDecoder.java +++ b/src/org/traccar/protocol/AtrackProtocolDecoder.java @@ -105,7 +105,7 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder { private void readTextCustomData(Position position, String data, String form) { String[] keys = form.substring(1).split("%"); - String[] values = data.split(","); + String[] values = data.split(",|\r\n"); for (int i = 0; i < Math.min(keys.length, values.length); i++) { switch (keys[i]) { case "MV": |