Skip to content

Commit

Permalink
[HTML] Made HTML layout more uniform and optimize CSS
Browse files Browse the repository at this point in the history
- Replaced all <TH> with functions
- Optimized CSS (removed some errors too)
- Uniform rendering of pages (TH, width first column)
- Added some metadata to timing stats page
- Reduction in used flash strings.
  • Loading branch information
TD-er committed Nov 20, 2018
1 parent 8f350fc commit 5e65f18
Show file tree
Hide file tree
Showing 7 changed files with 640 additions and 702 deletions.
2 changes: 2 additions & 0 deletions src/ESPEasy-Globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -1899,6 +1899,7 @@ unsigned long timingstats_last_reset = 0;
#define HOST_BY_NAME_STATS 29
#define CONNECT_CLIENT_STATS 30
#define LOAD_CUSTOM_TASK_STATS 31
#define WIFI_ISCONNECTED_STATS 32



Expand Down Expand Up @@ -1930,6 +1931,7 @@ String getMiscStatsName(int stat) {
case HOST_BY_NAME_STATS: return F("hostByName()");
case CONNECT_CLIENT_STATS: return F("connectClient()");
case LOAD_CUSTOM_TASK_STATS: return F("LoadCustomTaskSettings()");
case WIFI_ISCONNECTED_STATS: return F("WiFi.isConnected()");
case C001_DELAY_QUEUE:
case C002_DELAY_QUEUE:
case C003_DELAY_QUEUE:
Expand Down
6 changes: 5 additions & 1 deletion src/ESPEasyWifi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,13 @@ bool useStaticIP() {
}

bool WiFiConnected() {
START_TIMER;
// For ESP82xx, do not rely on WiFi.status() with event based wifi.
if (wifiStatus == ESPEASY_WIFI_SERVICES_INITIALIZED) {
if (WiFi.isConnected()) return true;
if (WiFi.isConnected()) {
STOP_TIMER(WIFI_ISCONNECTED_STATS);
return true;
}
// else wifiStatus is no longer in sync.
resetWiFi();
}
Expand Down
Loading

0 comments on commit 5e65f18

Please sign in to comment.