diff options
author | Evgeny S Maksimov <me@vragam.net> | 2019-01-21 23:17:04 +0300 |
---|---|---|
committer | Evgeny S Maksimov <me@vragam.net> | 2019-01-21 23:17:04 +0300 |
commit | b4a655445b6ad7a0ef96193a616f8bdec182ca54 (patch) | |
tree | 5a002050f0aadda49fd28885182c3f55969dae86 /src/org/traccar/protocol/NavisFrameDecoder.java | |
parent | eae48f944a326bac20e49dac4fe577e7cc2a4102 (diff) | |
download | trackermap-server-b4a655445b6ad7a0ef96193a616f8bdec182ca54.tar.gz trackermap-server-b4a655445b6ad7a0ef96193a616f8bdec182ca54.tar.bz2 trackermap-server-b4a655445b6ad7a0ef96193a616f8bdec182ca54.zip |
Naming convention fix
Diffstat (limited to 'src/org/traccar/protocol/NavisFrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/NavisFrameDecoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/NavisFrameDecoder.java b/src/org/traccar/protocol/NavisFrameDecoder.java index b82a3a5fb..1d77c0d65 100644 --- a/src/org/traccar/protocol/NavisFrameDecoder.java +++ b/src/org/traccar/protocol/NavisFrameDecoder.java @@ -48,7 +48,7 @@ public class NavisFrameDecoder extends BaseFrameDecoder { return buf.readRetainedSlice(1); } else if (buf.getByte(buf.readerIndex()) == 0x7E /* "~" */) { // FLEX frame - if (protocolDecoder.getFLEXDataSize() == 0) { + if (protocolDecoder.getFlexDataSize() == 0) { return null; } if (buf.readableBytes() > MAX_FRAME_LENGTH) { @@ -60,14 +60,14 @@ public class NavisFrameDecoder extends BaseFrameDecoder { switch (buf.getByte(buf.readerIndex() + 1)) { // FLEX 1.0 case 0x41: // "A" - length = protocolDecoder.getFLEXDataSize() + length = protocolDecoder.getFlexDataSize() * buf.getByte(buf.readerIndex() + FLEX_HEADER_LENGTH) + 2; break; case 0x54: // "T" - length = protocolDecoder.getFLEXDataSize() + 5; + length = protocolDecoder.getFlexDataSize() + 5; break; case 0x43: // "C" - length = protocolDecoder.getFLEXDataSize() + 1; + length = protocolDecoder.getFlexDataSize() + 1; break; // FLEX 2.0 (Extra packages) case 0x45: // "E" |