aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-05-14 23:01:51 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-05-14 23:01:51 -0700
commit1ebea9d3765ac5658b0513f3f8a3934d5b0d50d3 (patch)
tree1198bc440e4cc1e61bb90a59ec34f659e52ce8f4 /src/main/java/org/traccar/protocol
parentd9dcdd8b66f197ecb29c2291be6eb2a640886cc6 (diff)
downloadtrackermap-server-1ebea9d3765ac5658b0513f3f8a3934d5b0d50d3.tar.gz
trackermap-server-1ebea9d3765ac5658b0513f3f8a3934d5b0d50d3.tar.bz2
trackermap-server-1ebea9d3765ac5658b0513f3f8a3934d5b0d50d3.zip
Decode Suntech alert data
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
index 13e171dfa..e65ab6167 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -522,15 +522,15 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
}
if (BitUtil.check(mask, 19)) {
- index += 1; // alert id
+ position.set("alertId", values[index++]);
}
if (BitUtil.check(mask, 20)) {
- index += 1; // alert modifier
+ position.set("alertModifier", values[index++]);
}
if (BitUtil.check(mask, 21)) {
- index += 1; // alert data
+ position.set("alertData", values[index++]);
}
if (BitUtil.check(mask, 22)) {
@@ -656,7 +656,7 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
}
if (BitUtil.check(mask, 20)) {
- buf.readUnsignedShort(); // alert mod
+ buf.readUnsignedShort(); // alert modifier
}
if (BitUtil.check(mask, 21)) {