aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorseym45 <seym45@gmail.com>2023-08-29 16:13:47 +0400
committerseym45 <seym45@gmail.com>2023-08-29 16:13:47 +0400
commited3950fbdccfbd118ed898066fc74c93e7542ec4 (patch)
treec48f2c8d6a7db956c05330ca9d0421601471222e /src/main/java/org/traccar
parent2dd48fa51b39489aff03e4d0ede2e4be196283ec (diff)
downloadtrackermap-server-ed3950fbdccfbd118ed898066fc74c93e7542ec4.tar.gz
trackermap-server-ed3950fbdccfbd118ed898066fc74c93e7542ec4.tar.bz2
trackermap-server-ed3950fbdccfbd118ed898066fc74c93e7542ec4.zip
Fix content size for encoding
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/GatorProtocolEncoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/GatorProtocolEncoder.java b/src/main/java/org/traccar/protocol/GatorProtocolEncoder.java
index 4a3e21d85..895c68af5 100644
--- a/src/main/java/org/traccar/protocol/GatorProtocolEncoder.java
+++ b/src/main/java/org/traccar/protocol/GatorProtocolEncoder.java
@@ -91,7 +91,7 @@ public class GatorProtocolEncoder extends BaseProtocolEncoder {
String[] data = command.getString(Command.KEY_FREQUENCY).split(";");
content.writeShort(Integer.valueOf(data[0]));
content.writeShort(Integer.valueOf(data[1]));
- content.writeShort(Integer.valueOf(data[2]));
+ content.writeByte(Integer.valueOf(data[2]));
return encodeContent(command.getDeviceId(), GatorProtocolDecoder.MSG_POSITION_PERIODIC, content);
default:
return null;