aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorYuriy Piskarev <yuriy.piskarev@gmail.com>2022-04-20 23:06:21 +0300
committerYuriy Piskarev <yuriy.piskarev@gmail.com>2022-04-20 23:06:21 +0300
commit41bb8b4934ad70241f98f9cc83866fd565e79da0 (patch)
tree6f713f83d4f05a3b197c631c1b0204c3861bb78a /src/main
parentccaf3a078fd7c697863546108962e792cf414a66 (diff)
downloadtrackermap-server-41bb8b4934ad70241f98f9cc83866fd565e79da0.tar.gz
trackermap-server-41bb8b4934ad70241f98f9cc83866fd565e79da0.tar.bz2
trackermap-server-41bb8b4934ad70241f98f9cc83866fd565e79da0.zip
- fix checkstyle
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
index 4bef62b5c..cd0c3cdcb 100644
--- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
@@ -297,14 +297,13 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
break;
case 53:
value = buf.readUnsignedShortLE();
- if(value == 0x7FFF){
+ if (value == 0x7FFF) {
position.set(Position.KEY_FUEL_LEVEL + "Level", (Boolean) null);
position.set(Position.KEY_FUEL_LEVEL, (Boolean) null);
- } else if (BitUtil.check(value, 7)){
+ } else if (BitUtil.check(value, 7)) {
position.set(Position.KEY_FUEL_LEVEL + "Level", BitUtil.to(value, 6));
position.set(Position.KEY_FUEL_LEVEL, (Boolean) null);
- }
- else{
+ } else {
position.set(Position.KEY_FUEL_LEVEL + "Level", (Boolean) null);
position.set(Position.KEY_FUEL_LEVEL, BitUtil.to(value, 6) / 10);
}
@@ -347,14 +346,13 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
break;
case 66:
value = buf.readUnsignedShortLE();
- if(value == 0x7FFF){
+ if (value == 0x7FFF) {
position.set("obdAdBlueLevel", (Boolean) null);
position.set("obdAdBlue", (Boolean) null);
- } else if (BitUtil.check(value, 7)){
+ } else if (BitUtil.check(value, 7)) {
position.set("obdAdBlueLevel", BitUtil.to(value, 6));
position.set("obdAdBlue", (Boolean) null);
- }
- else{
+ } else {
position.set("obdAdBlueLevel", (Boolean) null);
position.set("obdAdBlue", BitUtil.to(value, 6) / 10);
}