Skip to content

Commit d31f2da

Browse files
authored
wrong part guarded
1 parent 3706fcf commit d31f2da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: libraries/WiFi/src/WiFiSTA.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,19 @@ class WiFiSTAClass {
111111
public:
112112
STAClass STA;
113113

114-
#if CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
115114
wl_status_t begin(
116115
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity = NULL, const char *wpa2_username = NULL, const char *wpa2_password = NULL,
117116
const char *ca_pem = NULL, const char *client_crt = NULL, const char *client_key = NULL, int ttls_phase2_type = -1, int32_t channel = 0,
118117
const uint8_t *bssid = 0, bool connect = true
119118
);
120-
#endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
119+
#if CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
121120
wl_status_t begin(
122121
const String &wpa2_ssid, wpa2_auth_method_t method, const String &wpa2_identity = (const char *)NULL, const String &wpa2_username = (const char *)NULL,
123122
const String &wpa2_password = (const char *)NULL, const String &ca_pem = (const char *)NULL, const String &client_crt = (const char *)NULL,
124123
const String &client_key = (const char *)NULL, int ttls_phase2_type = -1, int32_t channel = 0, const uint8_t *bssid = 0, bool connect = true
125-
) {
124+
)
125+
#endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
126+
{
126127
return begin(
127128
wpa2_ssid.c_str(), method, wpa2_identity.c_str(), wpa2_username.c_str(), wpa2_password.c_str(), ca_pem.c_str(), client_crt.c_str(), client_key.c_str(),
128129
ttls_phase2_type, channel, bssid, connect

0 commit comments

Comments
 (0)