From a57ed90756783057b801a6876786f5e9e652d02c Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 2 May 2026 09:48:19 +0200 Subject: [PATCH] use new network code --- src/web/WebStatusService.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/WebStatusService.cpp b/src/web/WebStatusService.cpp index fbcbeee4a..d12ddc226 100644 --- a/src/web/WebStatusService.cpp +++ b/src/web/WebStatusService.cpp @@ -374,10 +374,12 @@ void WebStatusService::getVersions(JsonObject root) { void WebStatusService::loop() { #ifndef EMSESP_STANDALONE // need a network - if (!EMSESP::system_.ethernet_connected() && (WiFi.status() != WL_CONNECTED)) { + if (!EMSESP::network_.network_connected()) { return; } + // TODO handle a network re-connect to fetch the values again (set versions_next_fetch_ms_ to 1) + // 0 = idle, nothing scheduled if (versions_next_fetch_ms_ == 0) { return;