aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/H02ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/H02ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java
index c67eb6053..84ddaf895 100644
--- a/src/org/traccar/protocol/H02ProtocolDecoder.java
+++ b/src/org/traccar/protocol/H02ProtocolDecoder.java
@@ -116,9 +116,9 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder {
".*" +
"(\\d{2})(\\d{2})(\\d{2})," + // Time (HHMMSS)
"([AV])," + // Validity
- "(\\d+)(\\d{2}.\\d+)," + // Latitude (DDMM.MMMM)
+ "-?(\\d+)-?(\\d{2}.\\d+)," + // Latitude (DDMM.MMMM)
"([NS])," +
- "(\\d+)(\\d{2}.\\d+)," + // Longitude (DDMM.MMMM)
+ "-?(\\d+)-?(\\d{2}.\\d+)," + // Longitude (DDMM.MMMM)
"([EW])," +
"(\\d+.?\\d*)," + // Speed
"(\\d+.?\\d*)?," + // Course