File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ bool WiFiGenericClass::mode(wifi_mode_t m) {
604604#endif
605605 uint32_t current_protocol = 0 ;
606606 if (m & WIFI_MODE_STA) {
607- err = esp_wifi_get_protocol (WIFI_IF_STA, (uint8_t *)¤t_protocol);
607+ err = esp_wifi_get_protocol (WIFI_IF_STA, (uint8_t *)¤t_protocol);
608608 if (err == ESP_OK && current_protocol == WIFI_PROTOCOL_LR) {
609609 log_v (" Disabling long range on STA" );
610610 err = esp_wifi_set_protocol (WIFI_IF_STA, WIFI_PROTOCOL_DEFAULT);
@@ -614,7 +614,7 @@ bool WiFiGenericClass::mode(wifi_mode_t m) {
614614 }
615615 }
616616 if (m & WIFI_MODE_AP) {
617- err = esp_wifi_get_protocol (WIFI_IF_AP, (uint8_t *)¤t_protocol);
617+ err = esp_wifi_get_protocol (WIFI_IF_AP, (uint8_t *)¤t_protocol);
618618 if (err == ESP_OK && current_protocol == WIFI_PROTOCOL_LR) {
619619 log_v (" Disabling long range on AP" );
620620 err = esp_wifi_set_protocol (WIFI_IF_AP, WIFI_PROTOCOL_DEFAULT);
You can’t perform that action at this time.
0 commit comments