aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/EnforaProtocolDecoder.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/EnforaProtocolDecoder.java b/src/org/traccar/protocol/EnforaProtocolDecoder.java
index a4c581979..eec724e30 100644
--- a/src/org/traccar/protocol/EnforaProtocolDecoder.java
+++ b/src/org/traccar/protocol/EnforaProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 - 2013 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2012 - 2014 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,14 +38,14 @@ public class EnforaProtocolDecoder extends BaseProtocolDecoder {
private static final Pattern pattern = Pattern.compile(
"GPRMC," +
- "(\\d{2})(\\d{2})(\\d{2}).(\\d{2})," + // Time (HHMMSS.SS)
+ "(\\d{2})(\\d{2})(\\d{2}).(\\d+)," + // Time (HHMMSS.SS)
"([AV])," + // Validity
- "(\\d{2})(\\d{2}.\\d{6})," + // Latitude (DDMM.MMMMMM)
+ "(\\d{2})(\\d{2}.\\d+)," + // Latitude (DDMM.MMMMMM)
"([NS])," +
- "(\\d{3})(\\d{2}.\\d{6})," + // Longitude (DDDMM.MMMMMM)
+ "(\\d{3})(\\d{2}.\\d+)," + // Longitude (DDDMM.MMMMMM)
"([EW])," +
- "(\\d+.\\d)?," + // Speed
- "(\\d+.\\d)?," + // Course
+ "(\\d+.\\d+)?," + // Speed
+ "(\\d+.\\d+)?," + // Course
"(\\d{2})(\\d{2})(\\d{2})," + // Date (DDMMYY)
".*[\r\n\u0000]*");