Skip to content

Commit 082c434

Browse files
author
BayCom GmbH
committed
fix WIFI connect as station
1 parent 0fc071c commit 082c434

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
default_envs = heltec_wifi_lora_32-release, esp32-poe-lora-release
1313

1414
[env]
15-
platform = espressif32
15+
platform = espressif32@6.5.0
1616
framework = arduino
1717
monitor_speed = 115200
1818
board_build.embed_txtfiles =

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void wifi_loop() {
186186

187187
if (!eth_connected && millis() < 30000) {
188188
if (cfg.wifi_opmode == OPMODE_WIFI_STATION &&
189-
cfg.wifi_ap_fallback == 1 && WiFi.status() != WL_CONNECTED) {
189+
cfg.wifi_ap_fallback == 1 && WiFi.status() != WL_CONNECTED && count > 60) {
190190
uint8_t mac[10];
191191
WiFi.macAddress(mac);
192192
sprintf(cfg.wifi_ssid, "RPS-%02X%02X%02X", mac[3], mac[4], mac[5]);

0 commit comments

Comments
 (0)