From 5986125661768fd740a2d71455a1670814957f2c Mon Sep 17 00:00:00 2001 From: richonguzman Date: Thu, 23 May 2024 18:29:08 -0400 Subject: [PATCH] wifiInterval not used --- src/utils.cpp | 15 --------------- src/utils.h | 1 - 2 files changed, 16 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index d3b17bd9..9587af61 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -29,8 +29,6 @@ extern int rssi; extern float snr; extern int freqError; extern String distance; -extern uint32_t lastWiFiCheck; -extern bool WiFiConnect; extern bool WiFiConnected; extern int wxModuleType; extern bool backUpDigiMode; @@ -172,19 +170,6 @@ namespace Utils { } } - void checkWiFiInterval() { - uint32_t WiFiCheck = millis() - lastWiFiCheck; - if (WiFi.status() != WL_CONNECTED && WiFiCheck >= 15 * 60 * 1000) { - WiFiConnect = true; - } - if (WiFiConnect) { - Serial.println("\nConnecting to WiFi ..."); - WIFI_Utils::startWiFi(); - lastWiFiCheck = millis(); - WiFiConnect = false; - } - } - void validateFreqs() { if (Config.loramodule.txFreq != Config.loramodule.rxFreq && abs(Config.loramodule.txFreq - Config.loramodule.rxFreq) < 125000) { Serial.println("Tx Freq less than 125kHz from Rx Freq ---> NOT VALID"); diff --git a/src/utils.h b/src/utils.h index 599cd68a..17dc7ed1 100644 --- a/src/utils.h +++ b/src/utils.h @@ -19,7 +19,6 @@ namespace Utils { void activeStations(); void checkBeaconInterval(); void checkDisplayInterval(); - void checkWiFiInterval(); void validateFreqs(); void typeOfPacket(const String& packet, uint8_t packetType); void print(const String& text);