diff options
author | Anton Tananaev <anton@traccar.org> | 2024-05-24 14:31:57 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-05-24 14:31:57 -0700 |
commit | 248a3927ddd6606034ac10d2174946c84fee04f0 (patch) | |
tree | 33844a476ea731022d91f76f24dd61c48794ee82 /src/main/java/org/traccar/protocol | |
parent | bcbc08150700c2cc68d8b894bdd1dd38ad65ca62 (diff) | |
download | trackermap-server-248a3927ddd6606034ac10d2174946c84fee04f0.tar.gz trackermap-server-248a3927ddd6606034ac10d2174946c84fee04f0.tar.bz2 trackermap-server-248a3927ddd6606034ac10d2174946c84fee04f0.zip |
Ignore model name case
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index 71c37b27c..a1a9c3773 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -411,7 +411,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { } private String decodeAlarm(short value, String model) { - boolean modelLW = model != null && model.startsWith("LW"); + boolean modelLW = model != null && model.toUpperCase().startsWith("LW"); switch (value) { case 0x01: return Position.ALARM_SOS; |