From f6caaff2543d9ab28b15177d83ca18fd0401fbbe Mon Sep 17 00:00:00 2001 From: Euripedes Rocha Date: Mon, 16 May 2022 11:48:42 -0300 Subject: [PATCH] Fix WSS default port selection through menuconfig. Evaluate the correct define to select default port. - Closes https://github.com/espressif/esp-mqtt/issues/223 --- lib/include/mqtt_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/mqtt_config.h b/lib/include/mqtt_config.h index 9921085..25685d6 100644 --- a/lib/include/mqtt_config.h +++ b/lib/include/mqtt_config.h @@ -60,7 +60,7 @@ #define MQTT_WS_DEFAULT_PORT 80 #endif -#ifdef MQTT_WSS_DEFAULT_PORT +#ifdef CONFIG_MQTT_WSS_DEFAULT_PORT #define MQTT_WSS_DEFAULT_PORT CONFIG_MQTT_WSS_DEFAULT_PORT #else #define MQTT_WSS_DEFAULT_PORT 443