Skip to content

Commit

Permalink
wifiInterval not used
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed May 23, 2024
1 parent 6090b83 commit 5986125
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5986125

Please sign in to comment.