File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -602,9 +602,9 @@ bool WiFiGenericClass::mode(wifi_mode_t m) {
602
602
#else
603
603
#define WIFI_PROTOCOL_DEFAULT (WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N)
604
604
#endif
605
- uint8_t current_protocol = 0 ;
605
+ uint32_t current_protocol = 0 ;
606
606
if (m & WIFI_MODE_STA) {
607
- err = esp_wifi_get_protocol (WIFI_IF_STA, ¤t_protocol);
607
+ err = esp_wifi_get_protocol (WIFI_IF_STA, ( uint8_t *) ¤t_protocol);
608
608
if (err == ESP_OK && current_protocol == WIFI_PROTOCOL_LR) {
609
609
log_v (" Disabling long range on STA" );
610
610
err = esp_wifi_set_protocol (WIFI_IF_STA, WIFI_PROTOCOL_DEFAULT);
@@ -614,7 +614,7 @@ bool WiFiGenericClass::mode(wifi_mode_t m) {
614
614
}
615
615
}
616
616
if (m & WIFI_MODE_AP) {
617
- err = esp_wifi_get_protocol (WIFI_IF_AP, ¤t_protocol);
617
+ err = esp_wifi_get_protocol (WIFI_IF_AP, ( uint8_t *) ¤t_protocol);
618
618
if (err == ESP_OK && current_protocol == WIFI_PROTOCOL_LR) {
619
619
log_v (" Disabling long range on AP" );
620
620
err = esp_wifi_set_protocol (WIFI_IF_AP, WIFI_PROTOCOL_DEFAULT);
You can’t perform that action at this time.
0 commit comments