Browse Source

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

refactor-terminal
Debarko De 5 years ago
parent
commit
214080e852
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      code/espurna/wifi.ino

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

@ -467,10 +467,9 @@ void _wifiWebSocketOnAction(uint32_t client_id, const char * action, JsonObject&
// INFO
// -----------------------------------------------------------------------------
#if DEBUG_SUPPORT || TERMINAL_SUPPORT
void wifiDebug(WiFiMode_t modes) {
#if DEBUG_SUPPORT || TERMINAL_SUPPORT
bool footer = false;
if (((modes & WIFI_STA) > 0) && ((WiFi.getMode() & WIFI_STA) > 0)) {
@ -511,6 +510,7 @@ void wifiDebug(WiFiMode_t modes) {
if (footer) {
DEBUG_MSG_P(PSTR("[WIFI] ----------------------------------------------\n"));
}
#endif //DEBUG_SUPPORT
}
@ -518,8 +518,6 @@ void wifiDebug() {
wifiDebug(WIFI_AP_STA);
}
#endif //DEBUG_SUPPORT
// -----------------------------------------------------------------------------
// API
// -----------------------------------------------------------------------------


Loading…
Cancel
Save