Skip to content

Commit 384fc7e

Browse files
author
Seppo Takalo
committed
Fix typo: WifiInterface -> WiFiInterface and add missing return.
Default WiFiInterface did not even build. And when it was fixed to build, it was always returning NULL.
1 parent 412f654 commit 384fc7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/netsocket/NetworkInterfaceDefaults.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ MBED_WEAK NetworkInterface *NetworkInterface::get_target_default_instance()
8383
* we have at least an access point name.
8484
*/
8585
#ifdef MBED_CONF_NSAPI_DEFAULT_WIFI_SSID
86-
WiFiInterface *wifi = WifiInterface::get_default_instance();
86+
WiFiInterface *wifi = WiFiInterface::get_default_instance();
8787
if (!wifi) {
8888
return NULL;
8989
}
@@ -97,6 +97,7 @@ MBED_WEAK NetworkInterface *NetworkInterface::get_target_default_instance()
9797
#define concat(x,y) concat_(x,y)
9898
#define SECURITY concat(NSAPI_SECURITY_,MBED_CONF_NSAPI_DEFAULT_WIFI_SECURITY)
9999
wifi->set_credentials(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID, MBED_CONF_NSAPI_DEFAULT_WIFI_PASSWORD, SECURITY);
100+
return wifi;
100101
#else
101102
return NULL;
102103
#endif

0 commit comments

Comments
 (0)