Skip to content

Commit e56d9f9

Browse files
fixing return status of begin
1 parent ec3cba5 commit e56d9f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/WiFi/src/WiFi.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ int CWifi::begin(const char* ssid) {
3232
int CWifi::begin(const char* ssid, const char *passphrase) {
3333
/* -------------------------------------------------------------------------- */
3434
WiFiStation.connectToAP(ssid, passphrase);
35-
return WiFiStation.begin();;
35+
WiFiStation.begin();
36+
return WiFiStation.status();
3637
}
3738

3839
/* passphrase is needed so a default one will be set */

0 commit comments

Comments
 (0)