aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-02-16 22:31:02 -0800
committerAnton Tananaev <anton@traccar.org>2022-02-16 22:31:02 -0800
commitf250352ef9fd36f4448a336a9c7b4411345c6285 (patch)
tree8cee54ff5c47b37c7b1f66156f36ce6b952feae6 /src/main/java/org/traccar/protocol
parentb85d10bcc7baa7b7efafa82933a5abaaa8db2c92 (diff)
downloadtrackermap-server-f250352ef9fd36f4448a336a9c7b4411345c6285.tar.gz
trackermap-server-f250352ef9fd36f4448a336a9c7b4411345c6285.tar.bz2
trackermap-server-f250352ef9fd36f4448a336a9c7b4411345c6285.zip
Convert to lower case
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-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;
}