aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-17 14:35:11 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-17 14:35:11 +0500
commit54a64d8c0186e71ce557b5e9764d478084e9443c (patch)
tree65a57a0d8f173493ef13cd9cd7736b22808d218c
parent7dd85faa3018aa6d3c8a192eed99360cb406eb71 (diff)
downloadtraccar-server-54a64d8c0186e71ce557b5e9764d478084e9443c.tar.gz
traccar-server-54a64d8c0186e71ce557b5e9764d478084e9443c.tar.bz2
traccar-server-54a64d8c0186e71ce557b5e9764d478084e9443c.zip
Used ALARM_GENERAL for Tytan
-rw-r--r--src/org/traccar/protocol/TytanProtocolDecoder.java2
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: