Allow the use of TLS in MINIMAL if compiled with TLS

This commit is contained in:
Stephan Hadinger 2020-10-30 16:46:57 +01:00
parent 750d35283b
commit 4ca8a4cf02
1 changed files with 2 additions and 0 deletions

View File

@ -608,10 +608,12 @@ void MqttReconnect(void)
global_state.mqtt_down = 1;
#ifdef FIRMWARE_MINIMAL
#ifndef USE_MQTT_TLS
// Don't try to connect if MQTT requires TLS but TLS is not supported
if (Settings.flag4.mqtt_tls) {
return;
}
#endif
#endif
AddLog_P(LOG_LEVEL_INFO, S_LOG_MQTT, PSTR(D_ATTEMPTING_CONNECTION));