Skip to content

Commit 444bbc9

Browse files
committed
feat(ap): No need to guard the function
1 parent 4aa2f24 commit 444bbc9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libraries/WiFi/src/AP.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ bool APClass::enableNAPT(bool enable) {
306306
}
307307

308308
bool APClass::enableDhcpCaptivePortal() {
309-
#if CONFIG_ESP_ENABLE_DHCP_CAPTIVEPORTAL
310309
esp_err_t err = ESP_OK;
311310
static char captiveportal_uri[32] = {0,};
312311

@@ -341,10 +340,6 @@ bool APClass::enableDhcpCaptivePortal() {
341340
}
342341

343342
return true;
344-
#else
345-
log_e("CONFIG_ESP_ENABLE_DHCP_CAPTIVEPORTAL is not enabled!");
346-
return false;
347-
#endif
348343
}
349344

350345
String APClass::SSID(void) const {

0 commit comments

Comments
 (0)