use new network code

This commit is contained in:
proddy
2026-05-02 09:48:19 +02:00
parent eaf8332d16
commit a57ed90756

View File

@@ -374,10 +374,12 @@ void WebStatusService::getVersions(JsonObject root) {
void WebStatusService::loop() { void WebStatusService::loop() {
#ifndef EMSESP_STANDALONE #ifndef EMSESP_STANDALONE
// need a network // need a network
if (!EMSESP::system_.ethernet_connected() && (WiFi.status() != WL_CONNECTED)) { if (!EMSESP::network_.network_connected()) {
return; return;
} }
// TODO handle a network re-connect to fetch the values again (set versions_next_fetch_ms_ to 1)
// 0 = idle, nothing scheduled // 0 = idle, nothing scheduled
if (versions_next_fetch_ms_ == 0) { if (versions_next_fetch_ms_ == 0) {
return; return;