aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
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/org/traccar
parent5502e0657caa5d941de8139e834c8d8c089fa389 (diff)
downloadtraccar-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.tar.gz
traccar-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.tar.bz2
traccar-server-7568adcc9350dfaeb23645a92b5d63663509ddc6.zip
Adjust watch decoder to accept spaces
Diffstat (limited to 'src/org/traccar')
-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