aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny S Maksimov <admin@vragam.net>2019-01-22 19:52:19 +0300
committerEvgeny S Maksimov <admin@vragam.net>2019-01-22 19:52:19 +0300
commit8385061cf3b2374890c9d854d3843cecbc5ae0b9 (patch)
treefbf36f0b14e6d22b24c8f3a2d6815ab31a9d7b2e /src
parente655888ac17d6138a9d7a40fa2782a6406e7ed1e (diff)
downloadtraccar-server-8385061cf3b2374890c9d854d3843cecbc5ae0b9.tar.gz
traccar-server-8385061cf3b2374890c9d854d3843cecbc5ae0b9.tar.bz2
traccar-server-8385061cf3b2374890c9d854d3843cecbc5ae0b9.zip
Revert unnecessary changes
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/NavisProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java
index 955f3cc1f..61c39aaf4 100644
--- a/src/org/traccar/protocol/NavisProtocolDecoder.java
+++ b/src/org/traccar/protocol/NavisProtocolDecoder.java
@@ -111,7 +111,7 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_EVENT, buf.readUnsignedShortLE());
- buf.skipBytes(6); // Event time
+ buf.skipBytes(6); // event time
short armedStatus = buf.readUnsignedByte();
if (isFormat(format, F10, F20, F30, F40, F50, F51, F52)) {
@@ -508,7 +508,7 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_INDEX, index);
position.set(Position.KEY_EVENT, buf.readUnsignedShortLE());
- buf.skipBytes(4); // Event time
+ buf.skipBytes(4); // event time
int navSensorState = buf.readUnsignedByte();
position.setValid(BitUtil.check(navSensorState, 1));
@@ -612,7 +612,7 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder {
}
private Object processHandshake(Channel channel, SocketAddress remoteAddress, ByteBuf buf) {
- buf.skipBytes(1); // Colon symbol
+ buf.readByte(); // colon symbol
if (getDeviceSession(channel, remoteAddress, buf.toString(StandardCharsets.US_ASCII)) != null) {
sendNtcbReply(channel, Unpooled.copiedBuffer("*<S", StandardCharsets.US_ASCII));
}