aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java')
-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)) {