diff --git a/fan-controller/src/mqtt/packet/ping_request.rs b/fan-controller/src/mqtt/packet/ping_request.rs index e0417d4..8c9942a 100644 --- a/fan-controller/src/mqtt/packet/ping_request.rs +++ b/fan-controller/src/mqtt/packet/ping_request.rs @@ -14,5 +14,6 @@ impl Encode for PingRequest { *offset += 1; // Setting it to 0, because this might not be 0 if we reuse the buffer buffer[*offset] = 0; + *offset += 1; } }