From d8f32d6adec0f9b9785dfd90e353229260548628 Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 17 Feb 2022 10:46:02 +0100 Subject: [PATCH] hard code 128 as topic length to prevent compiler warnings --- src/mqtt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt.h b/src/mqtt.h index 8fed88ec0..3295e4f6f 100644 --- a/src/mqtt.h +++ b/src/mqtt.h @@ -70,7 +70,7 @@ class Mqtt { enum Operation : uint8_t { PUBLISH, SUBSCRIBE, UNSUBSCRIBE }; enum NestedFormat : uint8_t { NESTED = 1, SINGLE }; - static constexpr uint8_t MQTT_TOPIC_MAX_SIZE = FACTORY_MQTT_MAX_TOPIC_LENGTH; // fixed, not a user setting anymore + static constexpr uint8_t MQTT_TOPIC_MAX_SIZE = 128; // fixed, not a user setting anymore static void on_connect();