From d6d93a3c26f1727bf4bf4bfd3c5bf111aea1083e Mon Sep 17 00:00:00 2001 From: rmom Date: Sat, 24 Jun 2023 19:14:27 +0200 Subject: [PATCH] Implemented quick fix for #889 from anorak-47 --- src/publisher/pubMqtt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/publisher/pubMqtt.h b/src/publisher/pubMqtt.h index c6723396..95f45b65 100644 --- a/src/publisher/pubMqtt.h +++ b/src/publisher/pubMqtt.h @@ -314,7 +314,9 @@ class PubMqtt { delete[] pyld; } - const char *p = topic; + # quick fix for #889 + # initial line: const char *p = topic; + const char *p = topic + strlen(mCfgMqtt->topic); uint8_t pos = 0; uint8_t elm = 0; char tmp[30];