aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-07-12 06:24:15 -0700
committerAnton Tananaev <anton@traccar.org>2023-07-12 06:24:15 -0700
commitb3c6e22fc19ceeceb0f318131538b5e1d260450c (patch)
treea2edfaf654f6ab0fe902431b9f0983cd9faf8fa6 /src/main/java/org
parentb5d5ec43181a428741c312462024d17ff7fbc676 (diff)
downloadtrackermap-server-b3c6e22fc19ceeceb0f318131538b5e1d260450c.tar.gz
trackermap-server-b3c6e22fc19ceeceb0f318131538b5e1d260450c.tar.bz2
trackermap-server-b3c6e22fc19ceeceb0f318131538b5e1d260450c.zip
Ignore R31 alarm extension
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
index 5db06fc41..383d4cb3a 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -828,7 +828,10 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
} else {
position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte() * 100 / 6);
position.set(Position.KEY_RSSI, buf.readUnsignedByte());
- position.set(Position.KEY_ALARM, decodeAlarm(buf.readUnsignedByte()));
+ short alarmExtension = buf.readUnsignedByte();
+ if (variant != Variant.VXT01) {
+ position.set(Position.KEY_ALARM, decodeAlarm(alarmExtension));
+ }
}
}