aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-07-25 05:44:23 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-07-25 05:44:23 +1200
commit7c8e00eba940fdbcde3ea2b60e6094caa9098b99 (patch)
treee18540b21d4e62b4ac73bb60eb32d11b76b30366 /src/org
parent6af986e2bd05d6376c7ad25a4621f6466bff1b46 (diff)
downloadtrackermap-server-7c8e00eba940fdbcde3ea2b60e6094caa9098b99.tar.gz
trackermap-server-7c8e00eba940fdbcde3ea2b60e6094caa9098b99.tar.bz2
trackermap-server-7c8e00eba940fdbcde3ea2b60e6094caa9098b99.zip
Improve Atrack decoder pattern
Diffstat (limited to 'src/org')
-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 ebccfec94..7755bfa25 100644
--- a/src/org/traccar/protocol/AtrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/AtrackProtocolDecoder.java
@@ -274,7 +274,7 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder {
.number("(-?d+),") // latitude
.number("(d+),") // course
.number("(d+),") // report id
- .number("(d+.d+),") // odometer
+ .number("(d+.?d*),") // odometer
.number("(d+),") // hdop
.number("(d+),") // inputs
.number("(d+),") // speed