diff options
author | Anton Tananaev <anton@traccar.org> | 2023-04-15 07:37:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-04-15 07:37:52 -0700 |
commit | c024d09744dea2db2d60f51bc6c1532284ffca4e (patch) | |
tree | 7d7267bcb13eb6d9d50852c4d3e12c7294525c58 /src/main/java/org/traccar/protocol/Minifinder2ProtocolEncoder.java | |
parent | 9a427527da45e599a1082f1f2836d195ea26acb5 (diff) | |
download | trackermap-server-c024d09744dea2db2d60f51bc6c1532284ffca4e.tar.gz trackermap-server-c024d09744dea2db2d60f51bc6c1532284ffca4e.tar.bz2 trackermap-server-c024d09744dea2db2d60f51bc6c1532284ffca4e.zip |
Fix Nano firmware update
Diffstat (limited to 'src/main/java/org/traccar/protocol/Minifinder2ProtocolEncoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Minifinder2ProtocolEncoder.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolEncoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolEncoder.java index ce7de6dfc..fab3c3a6d 100644 --- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolEncoder.java +++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolEncoder.java @@ -53,6 +53,7 @@ public class Minifinder2ProtocolEncoder extends BaseProtocolEncoder { ByteBuf content = Unpooled.buffer(); if (command.getType().equals(Command.TYPE_FIRMWARE_UPDATE)) { String url = command.getString(Command.KEY_DATA); + content.writeByte(Minifinder2ProtocolDecoder.MSG_SYSTEM_CONTROL); content.writeByte(1 + url.length()); content.writeByte(0x30); // type content.writeCharSequence(url, StandardCharsets.US_ASCII); |