mirror of https://github.com/ARMmbed/mbed-os.git
reverting all tabs to spaces
parent
01ec0da7f2
commit
a4ce936947
|
@ -99,13 +99,13 @@ RTWInterface::RTWInterface(bool debug)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
emac->ops.power_up(emac);
|
emac->ops.power_up(emac);
|
||||||
if (_inited == false) {
|
if (_inited == false) {
|
||||||
ret = mbed_lwip_init(emac);
|
ret = mbed_lwip_init(emac);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
printf("Error init RTWInterface!(%d)\r\n", ret);
|
printf("Error init RTWInterface!(%d)\r\n", ret);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_inited = true;
|
_inited = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ int8_t RTWInterface::get_rssi()
|
||||||
}
|
}
|
||||||
|
|
||||||
nsapi_error_t RTWInterface::connect(const char *ssid, const char *pass,
|
nsapi_error_t RTWInterface::connect(const char *ssid, const char *pass,
|
||||||
nsapi_security_t security, uint8_t channel)
|
nsapi_security_t security, uint8_t channel)
|
||||||
{
|
{
|
||||||
set_credentials(ssid, pass, security);
|
set_credentials(ssid, pass, security);
|
||||||
set_channel(channel);
|
set_channel(channel);
|
||||||
|
@ -235,7 +235,7 @@ nsapi_error_t RTWInterface::disconnect()
|
||||||
char essid[33];
|
char essid[33];
|
||||||
|
|
||||||
wlan_emac_link_change(false);
|
wlan_emac_link_change(false);
|
||||||
mbed_lwip_bringdown();
|
mbed_lwip_bringdown();
|
||||||
if(wifi_is_connected_to_ap() != RTW_SUCCESS)
|
if(wifi_is_connected_to_ap() != RTW_SUCCESS)
|
||||||
return NSAPI_ERROR_NO_CONNECTION;
|
return NSAPI_ERROR_NO_CONNECTION;
|
||||||
if(wifi_disconnect()<0){
|
if(wifi_disconnect()<0){
|
||||||
|
|
Loading…
Reference in New Issue