From 1ebea9d3765ac5658b0513f3f8a3934d5b0d50d3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 14 May 2020 23:01:51 -0700 Subject: Decode Suntech alert data --- src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main') 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)) { -- cgit v1.2.3