From 6fd82cb329594a9d41134c1699110610994d66f1 Mon Sep 17 00:00:00 2001 From: Olivier Girondel Date: Thu, 27 Sep 2018 18:22:00 +0200 Subject: [Gpsmta] Catch negative sign --- src/org/traccar/protocol/GpsmtaProtocolDecoder.java | 4 ++-- 1 file 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 -- cgit v1.2.3