From 1deb666094251fba18481f3353ba09ff4233e846 Mon Sep 17 00:00:00 2001 From: Claas Date: Tue, 22 Oct 2024 00:29:01 +0200 Subject: [PATCH] Fix not getting ping response for keep alive because of invalid ping request packet due to last byte not getting written because offset was not advanced --- fan-controller/src/mqtt/packet/ping_request.rs | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.51.2