aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-13 09:45:52 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-13 09:45:52 +1300
commit7568adcc9350dfaeb23645a92b5d63663509ddc6 (patch)
treee94b7596a27617e6467ff2279d8db07fdc6f4ec4 /src
parent5502e0657caa5d941de8139e834c8d8c089fa389 (diff)
downloadtrackermap-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.tar.gz
trackermap-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.tar.bz2
trackermap-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.zip
Adjust watch decoder to accept spaces
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/WatchProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java
index 6b5d47023..0c35ef3a0 100644
--- a/src/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/org/traccar/protocol/WatchProtocolDecoder.java
@@ -47,9 +47,9 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
.number("(dd)(dd)(dd),") // date (ddmmyy)
.number("(dd)(dd)(dd),") // time
.expression("([AV]),") // validity
- .number("-?(d+.d+),") // latitude
+ .number(" *-?(d+.d+),") // latitude
.expression("([NS]),")
- .number("-?(d+.d+),") // longitude
+ .number(" *-?(d+.d+),") // longitude
.expression("([EW])?,")
.number("(d+.d+),") // speed
.number("(d+.?d*),") // course