Browse Source

Fix: Add Debug flag for compilation of wifiDebug() function (#1454)

* Fix: Add Debug flag for compilation of wifiDebug() function

* Update: Add terminal support for wifiDebug

* Update: Debug check position to make sure definition is not nullified to avoid putting checks in all places

* Remove TELNET check as per recommendation
refactor-terminal
Max Prokhorov 6 years ago
committed by GitHub
parent
commit
b428a9bc9c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      code/espurna/wifi.ino

+ 2
- 0
code/espurna/wifi.ino View File

@ -469,6 +469,7 @@ void _wifiWebSocketOnAction(uint32_t client_id, const char * action, JsonObject&
void wifiDebug(WiFiMode_t modes) {
#if DEBUG_SUPPORT
bool footer = false;
if (((modes & WIFI_STA) > 0) && ((WiFi.getMode() & WIFI_STA) > 0)) {
@ -509,6 +510,7 @@ void wifiDebug(WiFiMode_t modes) {
if (footer) {
DEBUG_MSG_P(PSTR("[WIFI] ----------------------------------------------\n"));
}
#endif //DEBUG_SUPPORT
}


Loading…
Cancel
Save