fix(wifi): fix writing errors

This commit is contained in:
Zhang Jun Hao
2020-05-25 18:01:34 +08:00
parent 2a65b024e7
commit d48e1172f4
44 changed files with 43 additions and 46 deletions

View File

@@ -200,7 +200,7 @@ esp_err_t app_prov_event_handler(void *ctx, system_event_t *event)
default:
if (info->disconnected.reason == WIFI_REASON_BASIC_RATE_NOT_SUPPORT) {
/*Switch to 802.11 bgn mode */
esp_wifi_set_protocol(ESP_IF_WIFI_STA, WIFI_PROTOCAL_11B | WIFI_PROTOCAL_11G | WIFI_PROTOCAL_11N);
esp_wifi_set_protocol(ESP_IF_WIFI_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N);
}
/* If none of the expected reasons,
* retry connecting to host SSID */