From 248a3927ddd6606034ac10d2174946c84fee04f0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 24 May 2024 14:31:57 -0700 Subject: Ignore model name case --- src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3