From f250352ef9fd36f4448a336a9c7b4411345c6285 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 16 Feb 2022 22:31:02 -0800 Subject: Convert to lower case --- src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/org/traccar/protocol') diff --git a/src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java b/src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java index bc28498cc..64663374d 100644 --- a/src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java @@ -84,7 +84,7 @@ public class OrbcommProtocolDecoder extends BaseProtocolDecoder { for (int j = 0; j < fields.size(); j++) { JsonObject field = fields.getJsonObject(j); String value = field.getString("Value"); - switch (field.getString("Name")) { + switch (field.getString("Name").toLowerCase()) { case "latitude": position.setLatitude(Integer.parseInt(value) / 60000.0); break; @@ -97,7 +97,6 @@ public class OrbcommProtocolDecoder extends BaseProtocolDecoder { case "heading": position.setCourse(Integer.parseInt(value) * 0.1); break; - default: break; } -- cgit v1.2.3