Ignore model name case

This commit is contained in:
Anton Tananaev 2024-05-24 14:31:57 -07:00
parent bcbc081507
commit 248a3927dd

View File

@ -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;