aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKirk Ryan <kirkryan@users.noreply.github.com>2017-10-10 11:19:03 +0100
committerGitHub <noreply@github.com>2017-10-10 11:19:03 +0100
commitbf44a4d63d6e1b2a52999ec656a23f90ed4e4389 (patch)
tree377b4f5c8a98624cf94885c36dff3d39257dd285 /src
parentb2ed61db9d33324222c7cbdc5a133152ede0c1ac (diff)
downloadtrackermap-server-bf44a4d63d6e1b2a52999ec656a23f90ed4e4389.tar.gz
trackermap-server-bf44a4d63d6e1b2a52999ec656a23f90ed4e4389.tar.bz2
trackermap-server-bf44a4d63d6e1b2a52999ec656a23f90ed4e4389.zip
Update case statement Xexun
A proposed change to allow for the correct use of value.toLowerCase() handling (case-insensitive switch statement functionality.
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/XexunProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/XexunProtocolDecoder.java b/src/org/traccar/protocol/XexunProtocolDecoder.java
index ca0a8669e..bb4b4f48c 100644
--- a/src/org/traccar/protocol/XexunProtocolDecoder.java
+++ b/src/org/traccar/protocol/XexunProtocolDecoder.java
@@ -68,11 +68,11 @@ public class XexunProtocolDecoder extends BaseProtocolDecoder {
if (value != null) {
switch (value.toLowerCase()) {
case "acc on":
- case "ACCStart":
+ case "accstart":
position.set(Position.KEY_IGNITION, true);
break;
case "acc off":
- case "ACCStop":
+ case "accstop":
position.set(Position.KEY_IGNITION, false);
break;
case "help me!":