aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-27 23:51:37 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-27 23:51:37 +1300
commitf6fc3fb5431e0904bde0d3afe35d622b7bdbe935 (patch)
tree15c2dcffb0a9158671c4b5190ecfb9eee8fd916a /src/org/traccar
parentb24067b9faa17020d5018c1780d6bff236e5a91a (diff)
downloadtraccar-server-f6fc3fb5431e0904bde0d3afe35d622b7bdbe935.tar.gz
traccar-server-f6fc3fb5431e0904bde0d3afe35d622b7bdbe935.tar.bz2
traccar-server-f6fc3fb5431e0904bde0d3afe35d622b7bdbe935.zip
Modify CalAmp decoder and add test cases
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/CalAmpProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CalAmpProtocolDecoder.java b/src/org/traccar/protocol/CalAmpProtocolDecoder.java
index 47d7bf483..2a4af2f03 100644
--- a/src/org/traccar/protocol/CalAmpProtocolDecoder.java
+++ b/src/org/traccar/protocol/CalAmpProtocolDecoder.java
@@ -121,7 +121,7 @@ public class CalAmpProtocolDecoder extends BaseProtocolDecoder {
int accCount = BitUtil.to(buf.readUnsignedByte(), 6);
if (type != MSG_MINI_EVENT_REPORT) {
- buf.readUnsignedByte(); // reserved
+ position.set("append", buf.readUnsignedByte());
}
if (accType == 1) {