aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-28 07:48:23 +1200
committerGitHub <noreply@github.com>2018-09-28 07:48:23 +1200
commit5cbc1e6d24260650ec2d54c7201c8521d0f90ddf (patch)
treee52ff6a8e09b04cd0ff92472de03d89dd5e60f7c /src/org/traccar/protocol
parentfefce2dff1931e430deb4d8723d7e8362b7e7698 (diff)
parent6fd82cb329594a9d41134c1699110610994d66f1 (diff)
downloadtrackermap-server-5cbc1e6d24260650ec2d54c7201c8521d0f90ddf.tar.gz
trackermap-server-5cbc1e6d24260650ec2d54c7201c8521d0f90ddf.tar.bz2
trackermap-server-5cbc1e6d24260650ec2d54c7201c8521d0f90ddf.zip
Merge pull request #4070 from oliv3/bug_4064.2
[Gpsmta] Catch negative sign
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/GpsmtaProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GpsmtaProtocolDecoder.java b/src/org/traccar/protocol/GpsmtaProtocolDecoder.java
index a8f74b876..0cb4b611e 100644
--- a/src/org/traccar/protocol/GpsmtaProtocolDecoder.java
+++ b/src/org/traccar/protocol/GpsmtaProtocolDecoder.java
@@ -36,8 +36,8 @@ public class GpsmtaProtocolDecoder extends BaseProtocolDecoder {
private static final Pattern PATTERN = new PatternBuilder()
.expression("([^ ]+) ") // uid
.number("(d+) ") // time (unix time)
- .number("-?(d+.d+) ") // latitude
- .number("-?(d+.d+) ") // longitude
+ .number("(-?d+.d+) ") // latitude
+ .number("(-?d+.d+) ") // longitude
.number("(d+) ") // speed
.number("(d+) ") // course
.number("(d+) ") // accuracy