Xteink-X4-crosspoint-reader/src
Claude 0a44e58d4e
Fix WiFi file transfer crash by adding initialization delay
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.
2026-01-09 13:03:09 +00:00
..
activities Fix WiFi file transfer crash by adding initialization delay 2026-01-09 13:03:09 +00:00
images Move to SDK EInkDisplay and enable anti-aliased 2-bit text (#5) 2025-12-08 19:48:49 +11:00
network Support up to 500 character file names (#275) 2026-01-07 23:43:19 +11:00
util Make extension checks case-insensitive (#273) 2026-01-07 21:07:23 +11:00
Battery.h Public release 2025-12-03 22:06:45 +11:00
CrossPointSettings.cpp Allow disabling anti-aliasing via a setting (#241) 2026-01-07 20:14:35 +11:00
CrossPointSettings.h Allow disabling anti-aliasing via a setting (#241) 2026-01-07 20:14:35 +11:00
CrossPointState.cpp Add exFAT support (#150) 2025-12-30 16:09:30 +11:00
CrossPointState.h Rename Screens to Activities and restructure files (#44) 2025-12-17 23:32:18 +11:00
fontIds.h Swap from Aleo to Bookerly for wider glyph support (#172) 2025-12-31 02:28:25 +11:00
main.cpp Calibre Web Epub Downloading + Calibre Wireless Device Syncing (#219) 2026-01-07 19:58:37 +11:00
MappedInputManager.cpp Add button mapping for Left, Back, Confirm, Right (#173) 2025-12-31 02:46:35 +11:00
MappedInputManager.h Add exFAT support (#150) 2025-12-30 16:09:30 +11:00
ScreenComponents.cpp Calibre Web Epub Downloading + Calibre Wireless Device Syncing (#219) 2026-01-07 19:58:37 +11:00
ScreenComponents.h Calibre Web Epub Downloading + Calibre Wireless Device Syncing (#219) 2026-01-07 19:58:37 +11:00
WifiCredentialStore.cpp Add exFAT support (#150) 2025-12-30 16:09:30 +11:00
WifiCredentialStore.h Add connect to Wifi and File Manager Webserver (#41) 2025-12-20 01:05:43 +11:00