diff options
author | Evgeny S Maksimov <admin@vragam.net> | 2019-01-31 13:07:26 +0300 |
---|---|---|
committer | Evgeny S Maksimov <admin@vragam.net> | 2019-01-31 13:07:26 +0300 |
commit | 83e97b472e16d5dc16826aa4688e7430b8ecec29 (patch) | |
tree | aa026525560829442cba6062c8fb2a5f30026e0a /src | |
parent | da9e3571f686816c07159fb834ec8b9e6eaa3cda (diff) | |
download | traccar-server-83e97b472e16d5dc16826aa4688e7430b8ecec29.tar.gz traccar-server-83e97b472e16d5dc16826aa4688e7430b8ecec29.tar.bz2 traccar-server-83e97b472e16d5dc16826aa4688e7430b8ecec29.zip |
Review fix
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/NavisProtocolDecoder.java | 4 |
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)) { |