aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorKevin Goos <kevingoos@telenet.be>2018-03-16 13:31:18 +0100
committerKevin Goos <kevingoos@telenet.be>2018-03-16 13:31:18 +0100
commitb34cf25b5ac1f178d783a512d3b95faed4bdb010 (patch)
treea30e3ffea926e15b41db9def19dd227d3b026467 /src/org/traccar/protocol
parent1216e3bee2abfecedfe1250a9dd5d45c83a2fc02 (diff)
downloadtrackermap-server-b34cf25b5ac1f178d783a512d3b95faed4bdb010.tar.gz
trackermap-server-b34cf25b5ac1f178d783a512d3b95faed4bdb010.tar.bz2
trackermap-server-b34cf25b5ac1f178d783a512d3b95faed4bdb010.zip
Fixed style issues
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/LaipacSFKamelProtocolDecoder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/LaipacSFKamelProtocolDecoder.java b/src/org/traccar/protocol/LaipacSFKamelProtocolDecoder.java
index dc169c668..60a6b2468 100644
--- a/src/org/traccar/protocol/LaipacSFKamelProtocolDecoder.java
+++ b/src/org/traccar/protocol/LaipacSFKamelProtocolDecoder.java
@@ -120,8 +120,7 @@ public class LaipacSFKamelProtocolDecoder extends BaseProtocolDecoder {
String result = sentence.replaceAll("^\\$(.*)\\*[0-9a-fA-F]{2}$", "$1");
- if (checksum == null || Integer.parseInt(checksum, 16) != Checksum.xor(result))
- {
+ if (checksum == null || Integer.parseInt(checksum, 16) != Checksum.xor(result)) {
return null;
}
@@ -150,7 +149,7 @@ public class LaipacSFKamelProtocolDecoder extends BaseProtocolDecoder {
return Position.ALARM_GEOFENCE_ENTER;
} else if (event.equals('T')) {
return Position.ALARM_TAMPERING;
- } else if(event.equals("H")) {
+ } else if (event.equals("H")) {
return Position.ALARM_POWER_OFF;
} else if (event.equals('X')) {
return Position.ALARM_GEOFENCE_ENTER;