Compare commits

..

No commits in common. "36b0c72f9b9a34b4c7b6c5dcac13ade3c9e8d5d7" and "af2189a78a38573644a0ed19a2df0ce934a1b7a8" have entirely different histories.

2 changed files with 2 additions and 25 deletions

View file

@ -12,10 +12,6 @@
#include "config.h" #include "config.h"
#include "config_user.h" #include "config_user.h"
#ifdef ENABLE_PING_HOST_TEST
#include <ESP8266Ping.h>
#endif
#ifndef DISABLE_WIFIMANAGER #ifndef DISABLE_WIFIMANAGER
#include <WiFiManager.h> // WiFiManager from bib manager #include <WiFiManager.h> // WiFiManager from bib manager
#endif #endif
@ -270,8 +266,6 @@ float readSensors(uint8_t s) {
void wifiConnectionCheck() { void wifiConnectionCheck() {
bool success = false;
if ((wifi_check_interval_counter + WIFI_CHECK_INTERVAL_MS) > millis()) { if ((wifi_check_interval_counter + WIFI_CHECK_INTERVAL_MS) > millis()) {
// if check interval is not exceeded abort check // if check interval is not exceeded abort check
return; return;
@ -279,28 +273,12 @@ void wifiConnectionCheck() {
wifi_check_interval_counter = millis(); wifi_check_interval_counter = millis();
/*if (WiFi.status() == WL_CONNECTED) { if (WiFi.status() == WL_CONNECTED) {
// if we are connected // if we are connected
return; return;
}*/
#ifdef ENABLE_PING_HOST_TEST
debug("Ping 192.168.0.85");
success = Ping.ping(PING_HOST_IP, 3);
if (success)
{
debug("Ping success");
return;
} }
#endif // ENABLE_PING_HOST_TEST
debug("Connection problem, resetting ESP"); // TODO Was muss hier getan werden?
#ifdef ENABLE_WATCHDOG
// loop endless, watchdog will reset the device
while (1 == 1) {}
#endif
ESP.reset();
} }

@ -1 +0,0 @@
Subproject commit 934e701dcee743fe1ec564d0c2d64bd99e8d7bf3