aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TeltonikaProtocolDecoder.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/TeltonikaProtocolDecoder.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/TeltonikaProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index e4966aabe..d3bca57ce 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -43,7 +43,11 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
if (channel != null) {
ChannelBuffer response = ChannelBuffers.directBuffer(1);
- response.writeByte(result ? 1 : 0);
+ if (result) {
+ response.writeByte(1);
+ } else {
+ response.writeByte(0);
+ }
channel.write(response);
}
}
@@ -60,8 +64,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
int codec = buf.readUnsignedByte(); // codec
if (codec == CODEC_12) {
- // TODO: decode serial port data
- return null;
+ return null; // decode serial port data
}
int count = buf.readUnsignedByte();