From e910186422117b6fd84f4c53ae24aea2831345fd Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 7 Mar 2021 12:45:45 +0100 Subject: [PATCH] don't restart ethernet a 2nd time --- src/WebStatusService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WebStatusService.cpp b/src/WebStatusService.cpp index 185860b15..ec9eec49b 100644 --- a/src/WebStatusService.cpp +++ b/src/WebStatusService.cpp @@ -61,7 +61,7 @@ void WebStatusService::WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info) { LOG_INFO("Adjusting Wifi Tx power from %d to %d (%s)", a1, a2, ok ? "ok" : "failed"); */ - EMSESP::system_.network_init(); // send out heartbeat MQTT as soon as we have a connection + EMSESP::system_.send_heartbeat(); break; case SYSTEM_EVENT_ETH_START: @@ -75,7 +75,7 @@ void WebStatusService::WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info) { #ifndef EMSESP_STANDALONE EMSESP::logger().info(F("Ethernet Connected with IP=%s, speed %d Mbps"), ETH.localIP().toString().c_str(), ETH.linkSpeed()); #endif - EMSESP::system_.network_init(); // send out heartbeat MQTT as soon as we have a connection + EMSESP::system_.send_heartbeat(); EMSESP::system_.ethernet_connected(true); } break;