From 2e1b6a9fc7043b09d511bba5a2acfa02ea0045d4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 13 Jun 2018 16:17:00 +1200 Subject: Save Totem status info --- src/org/traccar/protocol/TotemProtocolDecoder.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/org/traccar') 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)); -- cgit v1.2.3