aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-08-14 14:02:28 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-08-14 14:02:28 +1200
commit0f22f82f58a2da921caa70667c4d3dea479aa275 (patch)
treef134e0b4708c3ec99f3955bfe1e4900af542236a /src
parentf9e3af42ebd08b83522574b79617d89cd54ab486 (diff)
downloadtrackermap-server-0f22f82f58a2da921caa70667c4d3dea479aa275.tar.gz
trackermap-server-0f22f82f58a2da921caa70667c4d3dea479aa275.tar.bz2
trackermap-server-0f22f82f58a2da921caa70667c4d3dea479aa275.zip
Fix Atrack bulk upload issue
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/AtrackProtocolDecoder.java2
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":