aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 15:04:07 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 15:04:07 +1300
commit77d193bf840ceb5294a6cb0d0cd6e1512e2b1efb (patch)
treed846b6081e24b0eb3c4098b6bae392b4546143d7 /src
parent227c9e4d087da882fbaad71cd67e26fd194864ee (diff)
downloadtraccar-server-77d193bf840ceb5294a6cb0d0cd6e1512e2b1efb.tar.gz
traccar-server-77d193bf840ceb5294a6cb0d0cd6e1512e2b1efb.tar.bz2
traccar-server-77d193bf840ceb5294a6cb0d0cd6e1512e2b1efb.zip
Support new Totem protocol format
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/TotemProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java
index 121b56ff9..1fe91b942 100644
--- a/src/org/traccar/protocol/TotemProtocolDecoder.java
+++ b/src/org/traccar/protocol/TotemProtocolDecoder.java
@@ -138,9 +138,11 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
.number("(dd)") // external power
.number("(dddd)") // adc 1
.groupBegin()
+ .groupBegin()
.number("(dddd)") // adc 2
.number("(dddd)") // adc 3
.number("(dddd)") // adc 4
+ .groupEnd("?")
.number("(dddd)") // temperature 1
.number("(dddd)") // temperature 2
.groupEnd("?")