aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-11-24 10:13:35 -0800
committerGitHub <noreply@github.com>2021-11-24 10:13:35 -0800
commitc239f4a0964aabef7d65c3a6caa1ce678ec4a918 (patch)
tree97014218ca76da64e7b81978c04f3cc47bc2379a /src/main/java
parentfd47e69b388b1e0af8aa5ead940773f6b2da3e81 (diff)
parent17370d68fe7383226d1d23a967985e9da4153601 (diff)
downloadtrackermap-server-c239f4a0964aabef7d65c3a6caa1ce678ec4a918.tar.gz
trackermap-server-c239f4a0964aabef7d65c3a6caa1ce678ec4a918.tar.bz2
trackermap-server-c239f4a0964aabef7d65c3a6caa1ce678ec4a918.zip
Merge pull request #4772 from casswarry0/master
Fix error with protocol version reporting
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
index 613710587..8fe12fe69 100644
--- a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
@@ -421,7 +421,7 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
ByteBuf content = Unpooled.buffer();
if (type == MSG_LOGIN) {
content.writeInt((int) (System.currentTimeMillis() / 1000));
- content.writeByte(1); // protocol version
+ content.writeShort(1); // protocol version
content.writeByte(0); // action mask
}
ByteBuf response = EelinkProtocolEncoder.encodeContent(