aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorEvgeny S Maksimov <admin@vragam.net>2019-01-31 13:07:26 +0300
committerEvgeny S Maksimov <admin@vragam.net>2019-01-31 13:07:26 +0300
commit83e97b472e16d5dc16826aa4688e7430b8ecec29 (patch)
treeaa026525560829442cba6062c8fb2a5f30026e0a /src/org
parentda9e3571f686816c07159fb834ec8b9e6eaa3cda (diff)
downloadtraccar-server-83e97b472e16d5dc16826aa4688e7430b8ecec29.tar.gz
traccar-server-83e97b472e16d5dc16826aa4688e7430b8ecec29.tar.bz2
traccar-server-83e97b472e16d5dc16826aa4688e7430b8ecec29.zip
Review fix
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/NavisProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java
index d3b3f9932..ad20ea61f 100644
--- a/src/org/traccar/protocol/NavisProtocolDecoder.java
+++ b/src/org/traccar/protocol/NavisProtocolDecoder.java
@@ -562,8 +562,8 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder {
return null;
}
- byte flexProtocolVersion = (byte) buf.readUnsignedByte();
- byte flexStructVersion = (byte) buf.readUnsignedByte();
+ short flexProtocolVersion = buf.readUnsignedByte();
+ short flexStructVersion = buf.readUnsignedByte();
if ((flexProtocolVersion == 0x0A || flexProtocolVersion == 0x14)
&& (flexStructVersion == 0x0A || flexStructVersion == 0x14)) {