diff options
author | Kirk Ryan <kirkryan@users.noreply.github.com> | 2017-10-10 11:19:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-10 11:19:03 +0100 |
commit | bf44a4d63d6e1b2a52999ec656a23f90ed4e4389 (patch) | |
tree | 377b4f5c8a98624cf94885c36dff3d39257dd285 /src/org | |
parent | b2ed61db9d33324222c7cbdc5a133152ede0c1ac (diff) | |
download | traccar-server-bf44a4d63d6e1b2a52999ec656a23f90ed4e4389.tar.gz traccar-server-bf44a4d63d6e1b2a52999ec656a23f90ed4e4389.tar.bz2 traccar-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/org')
-rw-r--r-- | src/org/traccar/protocol/XexunProtocolDecoder.java | 4 |
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!": |