From bf44a4d63d6e1b2a52999ec656a23f90ed4e4389 Mon Sep 17 00:00:00 2001 From: Kirk Ryan Date: Tue, 10 Oct 2017 11:19:03 +0100 Subject: Update case statement Xexun A proposed change to allow for the correct use of value.toLowerCase() handling (case-insensitive switch statement functionality. --- src/org/traccar/protocol/XexunProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar/protocol') 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!": -- cgit v1.2.3