mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 16:17:38 +03:00
Fixed a critical bug where WiFi file transfer would crash and lock the device when accessed directly. The issue was caused by missing initialization time after WiFi.mode(WIFI_STA) call. Root cause: - Hotspot mode includes delay(100) after WiFi.mode(WIFI_AP) to allow hardware initialization - Join Network mode was missing this delay after WiFi.mode(WIFI_STA) - Without the delay, ESP32 WiFi hardware wasn't properly initialized - This caused crashes when starting the web server in STA mode Fix: - Added delay(100) after WiFi.mode(WIFI_STA) in onNetworkModeSelected() - Matches the proven initialization pattern used in hotspot mode - Comment added to explain the purpose of the delay This explains why going to hotspot first and exiting worked - hotspot mode properly initialized the WiFi hardware, which remained stable for subsequent file transfer operations. |
||
|---|---|---|
| .. | ||
| activities | ||
| images | ||
| network | ||
| util | ||
| Battery.h | ||
| CrossPointSettings.cpp | ||
| CrossPointSettings.h | ||
| CrossPointState.cpp | ||
| CrossPointState.h | ||
| fontIds.h | ||
| main.cpp | ||
| MappedInputManager.cpp | ||
| MappedInputManager.h | ||
| ScreenComponents.cpp | ||
| ScreenComponents.h | ||
| WifiCredentialStore.cpp | ||
| WifiCredentialStore.h | ||