diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-01 01:07:03 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-01 01:07:03 +1300 |
commit | 56e496c728faede7a6b26a382e87081dec569f78 (patch) | |
tree | 6fdf4828dfbd957fe7446bc6ca0224d36c6098af /src/org/traccar | |
parent | 8e567d133c3d342cebd505c6d2effe6b2a41cb7b (diff) | |
download | trackermap-server-56e496c728faede7a6b26a382e87081dec569f78.tar.gz trackermap-server-56e496c728faede7a6b26a382e87081dec569f78.tar.bz2 trackermap-server-56e496c728faede7a6b26a382e87081dec569f78.zip |
Fix eelink udp length field
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/EelinkProtocolEncoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/EelinkProtocolEncoder.java b/src/org/traccar/protocol/EelinkProtocolEncoder.java index 41d76b24a..76865a039 100644 --- a/src/org/traccar/protocol/EelinkProtocolEncoder.java +++ b/src/org/traccar/protocol/EelinkProtocolEncoder.java @@ -65,7 +65,7 @@ public class EelinkProtocolEncoder extends BaseProtocolEncoder { if (connectionless) { result.writeByte('E'); result.writeByte('L'); - result.writeShort(2 + 2 + 2 + buf.readableBytes()); // length + result.writeShort(2 + buf.readableBytes()); // length result.writeShort(checksum(buf.toByteBuffer())); } |