aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-12-01 20:20:23 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-12-01 20:20:23 +1300
commit1c70f6cad768f47ec8c49444e03691727699322b (patch)
treeaf4e43d41c8642ce531db77ef4d2051666533f8c /src/org
parent1644fb040d087a570afab3030dba5260075d64a6 (diff)
downloadtraccar-server-1c70f6cad768f47ec8c49444e03691727699322b.tar.gz
traccar-server-1c70f6cad768f47ec8c49444e03691727699322b.tar.bz2
traccar-server-1c70f6cad768f47ec8c49444e03691727699322b.zip
Improve intellitrack decoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/IntellitracProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/IntellitracProtocolDecoder.java b/src/org/traccar/protocol/IntellitracProtocolDecoder.java
index b71237e7f..e45c84ba9 100644
--- a/src/org/traccar/protocol/IntellitracProtocolDecoder.java
+++ b/src/org/traccar/protocol/IntellitracProtocolDecoder.java
@@ -33,7 +33,7 @@ public class IntellitracProtocolDecoder extends BaseProtocolDecoder {
super(serverManager);
}
- static private Pattern pattern = Pattern.compile(
+ private static final Pattern pattern = Pattern.compile(
"(?:.+,)?(\\d+)," + // Device Identifier
"(\\d{4})(\\d{2})(\\d{2})" + // Date (YYYYMMDD)
"(\\d{2})(\\d{2})(\\d{2})," + // Time (HHMMSS)
@@ -47,7 +47,8 @@ public class IntellitracProtocolDecoder extends BaseProtocolDecoder {
"(\\d+)," + // Input
"(\\d+),?" + // Output
"(\\d+\\.\\d+)?,?" + // ADC1
- "(\\d+\\.\\d+)?"); // ADC2
+ "(\\d+\\.\\d+)?" + // ADC2
+ ".*");
@Override
protected Object decode(