aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-21 12:52:52 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-21 12:52:52 +1300
commite7c04ee2af5b2bdabc58647c11ec059281dccae0 (patch)
tree8f8a8079bc6b9158bfa6029ce6ca5af5ee83dde7 /src
parent1fa85c6841e12027cc87638cd558cedb79e6efa9 (diff)
downloadtrackermap-server-e7c04ee2af5b2bdabc58647c11ec059281dccae0.tar.gz
trackermap-server-e7c04ee2af5b2bdabc58647c11ec059281dccae0.tar.bz2
trackermap-server-e7c04ee2af5b2bdabc58647c11ec059281dccae0.zip
Fix alarm and status decoding (fix #1675)
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/EelinkProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/EelinkProtocolDecoder.java b/src/org/traccar/protocol/EelinkProtocolDecoder.java
index f81e22bee..2aa18c20c 100644
--- a/src/org/traccar/protocol/EelinkProtocolDecoder.java
+++ b/src/org/traccar/protocol/EelinkProtocolDecoder.java
@@ -89,7 +89,7 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
position.set(Event.KEY_MCC, buf.readUnsignedShort());
position.set(Event.KEY_MNC, buf.readUnsignedShort());
position.set(Event.KEY_LAC, buf.readUnsignedShort());
- position.set(Event.KEY_CID, buf.readUnsignedShort());
+ position.set(Event.KEY_CID, buf.readUnsignedMedium());
position.setValid((buf.readUnsignedByte() & 0x01) != 0);