[SYS] Fix Ethernet network check on MQTT failure (#2013)
Missing the check Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
1 parent
f655f4fda0
commit
a2fa86eef6
1 file changed
+1
-1
+1
-1
@@ -1044,7 +1044,7 @@ void setupMQTT() {
|
||||
};
|
||||
|
||||
mqtt->connection_failure_callback = [] {
|
||||
if (WiFi.status() != WL_CONNECTED) {
|
||||
if (WiFi.status() != WL_CONNECTED && ethConnected == false) {
|
||||
// No WiFi connection, MQTT couldn't connect, ignore this failure
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user