aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TotemProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-06-13 16:17:00 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-06-13 16:17:00 +1200
commit2e1b6a9fc7043b09d511bba5a2acfa02ea0045d4 (patch)
tree3ffdafacfb0834eda076c7a42943dc864506d194 /src/org/traccar/protocol/TotemProtocolDecoder.java
parent59506b0da2407858b83e6116084bbb62b229bda4 (diff)
downloadtrackermap-server-2e1b6a9fc7043b09d511bba5a2acfa02ea0045d4.tar.gz
trackermap-server-2e1b6a9fc7043b09d511bba5a2acfa02ea0045d4.tar.bz2
trackermap-server-2e1b6a9fc7043b09d511bba5a2acfa02ea0045d4.zip
Save Totem status info
Diffstat (limited to 'src/org/traccar/protocol/TotemProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TotemProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java
index c1ee8bf20..d8caa9766 100644
--- a/src/org/traccar/protocol/TotemProtocolDecoder.java
+++ b/src/org/traccar/protocol/TotemProtocolDecoder.java
@@ -246,6 +246,7 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
}
int io = parser.nextBinInt();
+ position.set(Position.KEY_STATUS, io);
if (pattern == PATTERN1) {
position.set(Position.KEY_ALARM, BitUtil.check(io, 0) ? Position.ALARM_SOS : null);
position.set(Position.PREFIX_IN + 3, BitUtil.check(io, 4));