Skip to content

Commit 04eef22

Browse files
committed
Correctly set WiFi protocol when entering AP mode.
1 parent a13e053 commit 04eef22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Surveyor/WiFi.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ bool wifiStartAP(bool forceAP)
236236
// Before starting AP mode, be sure we have default WiFi protocols enabled.
237237
// esp_wifi_set_protocol requires WiFi to be started
238238
esp_err_t response =
239-
esp_wifi_set_protocol(WIFI_IF_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N);
239+
esp_wifi_set_protocol(WIFI_IF_AP, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N);
240240
if (response != ESP_OK)
241241
systemPrintf("wifiStartAP: Error setting WiFi protocols: %s\r\n", esp_err_to_name(response));
242242
else

0 commit comments

Comments
 (0)