mirror of
https://github.com/traccar/traccar.git
synced 2025-01-08 11:47:49 +08:00
Ignore model name case
This commit is contained in:
parent
bcbc081507
commit
248a3927dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user