Skip to content

Commit 9b9e493

Browse files
fixup! WiFi make begin() return status()
1 parent da64f1f commit 9b9e493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/WiFi/src/WiFi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class WiFiClass: public NetworkInterface
4343
return status();
4444
}
4545

46-
bool beginAP(char* ssid, char* passphrase, int channel = WIFI_CHANNEL_ANY, bool blocking = false) {
46+
int beginAP(char* ssid, char* passphrase, int channel = WIFI_CHANNEL_ANY, bool blocking = false) {
4747
if (ap_iface != NULL) {
4848
return false;
4949
}
@@ -71,7 +71,7 @@ class WiFiClass: public NetworkInterface
7171
net_mgmt_event_wait_on_iface(ap_iface, NET_EVENT_WIFI_AP_ENABLE_RESULT, NULL, NULL, NULL, K_FOREVER);
7272
}
7373

74-
return true;
74+
return status();
7575
}
7676

7777
int status() {

0 commit comments

Comments
 (0)