Skip to content

Commit

Permalink
[SYS] Fix Ethernet network check on MQTT failure (1technophile#2013)
Browse files Browse the repository at this point in the history
Missing the check

Co-authored-by: Florian <[email protected]>
  • Loading branch information
1technophile and 1technophile authored Aug 17, 2024
1 parent f655f4f commit a2fa86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a2fa86e

Please sign in to comment.