aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-06 10:01:35 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-06 10:02:39 +1200
commitd14cef37937fb64aa54cb497d51afd47b2798fb3 (patch)
treebbf386c4047c5209f978c0c00e71b69108a2df8c /src/org/traccar
parentbcc20a915c61d7a86fd19b03ec1ab55ac5cf8527 (diff)
downloadtrackermap-server-d14cef37937fb64aa54cb497d51afd47b2798fb3.tar.gz
trackermap-server-d14cef37937fb64aa54cb497d51afd47b2798fb3.tar.bz2
trackermap-server-d14cef37937fb64aa54cb497d51afd47b2798fb3.zip
Fix HuaSheng acknowledgement message
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/HuaShengProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/HuaShengProtocolDecoder.java b/src/org/traccar/protocol/HuaShengProtocolDecoder.java
index ef23f9fc4..6743db47d 100644
--- a/src/org/traccar/protocol/HuaShengProtocolDecoder.java
+++ b/src/org/traccar/protocol/HuaShengProtocolDecoder.java
@@ -41,8 +41,8 @@ public class HuaShengProtocolDecoder extends BaseProtocolDecoder {
ChannelBuffer response = ChannelBuffers.dynamicBuffer();
response.writeByte(0xC0);
response.writeShort(0x0100);
- response.writeShort(response.capacity()); // TODO: length
- response.writeByte(type);
+ response.writeShort(12 + content.readableBytes());
+ response.writeShort(type);
response.writeShort(0);
response.writeInt(1);
response.writeBytes(content);