aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/OrbcommProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
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;
}