Skip to content

Commit 04fa61d

Browse files
committed
Remove incorrect assignment of void return type
1 parent d22f9e2 commit 04fa61d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/WiFi/src/WiFi.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ int arduino::WiFiClass::begin(char* ssid, const char *passphrase) {
2525
}
2626

2727
if (wifi_if == NULL) {
28-
wifi_if = (WiFiInterface*)cb();
28+
//Q: What is the callback for?
29+
cb();
30+
if(wifi_if == NULL) return WL_CONNECT_FAILED;
2931
}
3032

3133
// too long? break it off

0 commit comments

Comments
 (0)