aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GatorProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-19 12:04:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-19 12:04:22 +1300
commit43814126839b863ac73452d395a0ec5e0d817d46 (patch)
treecb2a0b3842734dbc421d65f3c42e872f875a3f7c /src/org/traccar/protocol/GatorProtocolDecoder.java
parentc46e2e86536abfe36096e4d86cd3d82f0d4e64eb (diff)
downloadtrackermap-server-43814126839b863ac73452d395a0ec5e0d817d46.tar.gz
trackermap-server-43814126839b863ac73452d395a0ec5e0d817d46.tar.bz2
trackermap-server-43814126839b863ac73452d395a0ec5e0d817d46.zip
Clean up some check style issues
Diffstat (limited to 'src/org/traccar/protocol/GatorProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/GatorProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/GatorProtocolDecoder.java b/src/org/traccar/protocol/GatorProtocolDecoder.java
index f132e82d2..2bf10b14c 100644
--- a/src/org/traccar/protocol/GatorProtocolDecoder.java
+++ b/src/org/traccar/protocol/GatorProtocolDecoder.java
@@ -43,15 +43,15 @@ public class GatorProtocolDecoder extends BaseProtocolDecoder {
public static final int MSG_PICTURE_FRAME = 0x54;
public static final int MSG_CAMERA_RESPONSE = 0x56;
public static final int MSG_PICTURE_DATA = 0x57;
-
+
public static String decodeId(int b1, int b2, int b3, int b4) {
-
+
int d1 = 30 + ((b1 >> 7) << 3) + ((b2 >> 7) << 2) + ((b3 >> 7) << 1) + (b4 >> 7);
int d2 = b1 & 0x7f;
int d3 = b2 & 0x7f;
int d4 = b3 & 0x7f;
int d5 = b4 & 0x7f;
-
+
return String.format("%02d%02d%02d%02d%02d", d1, d2, d3, d4, d5);
}