aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-24 14:31:57 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-24 14:31:57 -0700
commit248a3927ddd6606034ac10d2174946c84fee04f0 (patch)
tree33844a476ea731022d91f76f24dd61c48794ee82
parentbcbc08150700c2cc68d8b894bdd1dd38ad65ca62 (diff)
downloadtrackermap-server-248a3927ddd6606034ac10d2174946c84fee04f0.tar.gz
trackermap-server-248a3927ddd6606034ac10d2174946c84fee04f0.tar.bz2
trackermap-server-248a3927ddd6606034ac10d2174946c84fee04f0.zip
Ignore model name case
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java2
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;