Skip to content

Commit a4ce936

Browse files
committed
reverting all tabs to spaces
1 parent 01ec0da commit a4ce936

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ static rtw_result_t scan_result_handler( rtw_scan_handler_result_t* malloced_sca
4343
wifi_scan_hdl *scan_handler = (wifi_scan_hdl *)malloced_scan_result->user_data;
4444
if (malloced_scan_result->scan_complete != RTW_TRUE) {
4545
if(scan_handler->ap_details && scan_handler->scan_num > scan_handler->ap_num){
46-
nsapi_wifi_ap_t ap;
46+
nsapi_wifi_ap_t ap;
4747
rtw_scan_result_t* record = &malloced_scan_result->ap_details;
48-
record->SSID.val[record->SSID.len] = 0; /* Ensure the SSID is null terminated */
48+
record->SSID.val[record->SSID.len] = 0; /* Ensure the SSID is null terminated */
4949
memset((void*)&ap, 0x00, sizeof(nsapi_wifi_ap_t));
5050
memcpy(ap.ssid, record->SSID.val, record->SSID.len);
5151
memcpy(ap.bssid, record->BSSID.octet, 6);
@@ -90,7 +90,7 @@ RTWInterface::RTWInterface(bool debug)
9090
{
9191
emac_interface_t *emac;
9292
int ret;
93-
extern u32 GlobalDebugEnable;
93+
extern u32 GlobalDebugEnable;
9494

9595
GlobalDebugEnable = debug?1:0;
9696
emac = wlan_emac_init_interface();
@@ -99,13 +99,13 @@ RTWInterface::RTWInterface(bool debug)
9999
return;
100100
}
101101
emac->ops.power_up(emac);
102-
if (_inited == false) {
102+
if (_inited == false) {
103103
ret = mbed_lwip_init(emac);
104104
if (ret != 0) {
105105
printf("Error init RTWInterface!(%d)\r\n", ret);
106106
return;
107107
}
108-
_inited = true;
108+
_inited = true;
109109
}
110110
}
111111

@@ -163,7 +163,7 @@ nsapi_error_t RTWInterface::connect()
163163
break;
164164
case NSAPI_SECURITY_NONE:
165165
sec = RTW_SECURITY_OPEN;
166-
break;
166+
break;
167167
default:
168168
return NSAPI_ERROR_PARAMETER;
169169
}
@@ -172,7 +172,7 @@ nsapi_error_t RTWInterface::connect()
172172
uint8_t pscan_config = PSCAN_ENABLE;
173173
wifi_set_pscan_chan(&_channel, &pscan_config, 1);
174174
}
175-
175+
176176
ret = wifi_connect(_ssid, sec, _pass, strlen(_ssid), strlen(_pass), 0, (void *)NULL);
177177
if (ret != RTW_SUCCESS) {
178178
printf("failed: %d\r\n", ret);
@@ -223,7 +223,7 @@ int8_t RTWInterface::get_rssi()
223223
}
224224

225225
nsapi_error_t RTWInterface::connect(const char *ssid, const char *pass,
226-
nsapi_security_t security, uint8_t channel)
226+
nsapi_security_t security, uint8_t channel)
227227
{
228228
set_credentials(ssid, pass, security);
229229
set_channel(channel);
@@ -233,12 +233,12 @@ nsapi_error_t RTWInterface::connect(const char *ssid, const char *pass,
233233
nsapi_error_t RTWInterface::disconnect()
234234
{
235235
char essid[33];
236-
236+
237237
wlan_emac_link_change(false);
238-
mbed_lwip_bringdown();
238+
mbed_lwip_bringdown();
239239
if(wifi_is_connected_to_ap() != RTW_SUCCESS)
240240
return NSAPI_ERROR_NO_CONNECTION;
241-
if(wifi_disconnect()<0){
241+
if(wifi_disconnect()<0){
242242
return NSAPI_ERROR_DEVICE_ERROR;
243243
}
244244
while(1){

0 commit comments

Comments
 (0)