aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-03-15 18:34:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-03-15 18:34:22 +1300
commitb01e047c94413facd3bf67d2357bf6ddc2b76297 (patch)
tree145e493cede780b5cfc14ae33fd1c6d0bb51691c /src
parentb5eb588704b76a4535e656253f3d50df1b046c68 (diff)
downloadtraccar-server-b01e047c94413facd3bf67d2357bf6ddc2b76297.tar.gz
traccar-server-b01e047c94413facd3bf67d2357bf6ddc2b76297.tar.bz2
traccar-server-b01e047c94413facd3bf67d2357bf6ddc2b76297.zip
Add AVL201 format support
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/TotemProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java
index 5e49141b7..5c0cc9bec 100644
--- a/src/org/traccar/protocol/TotemProtocolDecoder.java
+++ b/src/org/traccar/protocol/TotemProtocolDecoder.java
@@ -60,7 +60,7 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
"\\d" + // Charged
"(\\d{3})" + // Battery
"(\\d{4})\\|" + // External Power
- "(\\d+)\\|" + // ADC
+ "(?:(\\d+)\\|)?" + // ADC
"(\\p{XDigit}{8})\\|" + // Location Code
"(\\d+)\\|" + // Temperature
"(\\d+.\\d+)\\|" + // Milage