mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
use new network code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user