aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WatchProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-31 19:09:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-31 19:09:28 +1300
commit7949f0d11aa427bc0ffe3b0722d2390e14d62cc7 (patch)
tree75be19e6ddabc04374afa769c20679b4dfabb3f8 /src/org/traccar/protocol/WatchProtocolDecoder.java
parenta76e8d71083ef44384b541d33bab92eb096902d2 (diff)
downloadtrackermap-server-7949f0d11aa427bc0ffe3b0722d2390e14d62cc7.tar.gz
trackermap-server-7949f0d11aa427bc0ffe3b0722d2390e14d62cc7.tar.bz2
trackermap-server-7949f0d11aa427bc0ffe3b0722d2390e14d62cc7.zip
Improve Watch decoder pattern
Diffstat (limited to 'src/org/traccar/protocol/WatchProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/WatchProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java
index adaa41061..4d71a7f5d 100644
--- a/src/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/org/traccar/protocol/WatchProtocolDecoder.java
@@ -53,7 +53,7 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
.expression("([EW]),")
.number("(d+.d+),") // speed
.number("(d+.d+),") // course
- .number("(d+),") // altitude
+ .number("(d+.?d*),") // altitude
.number("(d+),") // satellites
.number("(d+),") // gsm
.number("(d+),") // battery