diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-08-17 16:37:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 16:37:31 +0300 |
commit | bfacd794c443f0f54a27d5d52b33de4628a36009 (patch) | |
tree | 65a57a0d8f173493ef13cd9cd7736b22808d218c /src/org/traccar/protocol/TytanProtocolDecoder.java | |
parent | 376bd7a7342ed46f20b7c0c94d7c9b0074ae99f3 (diff) | |
parent | 54a64d8c0186e71ce557b5e9764d478084e9443c (diff) | |
download | traccar-server-bfacd794c443f0f54a27d5d52b33de4628a36009.tar.gz traccar-server-bfacd794c443f0f54a27d5d52b33de4628a36009.tar.bz2 traccar-server-bfacd794c443f0f54a27d5d52b33de4628a36009.zip |
Merge pull request #2222 from Abyss777/alarms_3
Alarm decoding for few more protocols
Diffstat (limited to 'src/org/traccar/protocol/TytanProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TytanProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TytanProtocolDecoder.java b/src/org/traccar/protocol/TytanProtocolDecoder.java index 092ba431a..2733a568b 100644 --- a/src/org/traccar/protocol/TytanProtocolDecoder.java +++ b/src/org/traccar/protocol/TytanProtocolDecoder.java @@ -66,7 +66,7 @@ public class TytanProtocolDecoder extends BaseProtocolDecoder { int alarm = buf.readUnsignedByte(); buf.readUnsignedByte(); if (BitUtil.check(alarm, 5)) { - position.set(Position.KEY_ALARM, BitUtil.to(alarm, 4)); + position.set(Position.KEY_ALARM, Position.ALARM_GENERAL); } break; case 8: |