Xteink-X4-crosspoint-reader/src
Claude a535e412d1
Fix Calibre wireless exit freeze and improve free space reporting
This commit addresses two issues:

1. **Issue #342 - Device freeze on exit**: The device would freeze when
   pressing back button during Calibre wireless connection because tasks
   were being forcibly deleted while holding mutexes or blocked on network
   I/O. Fixed by:
   - Adding atomic `shouldStop` flag for cooperative shutdown
   - Closing network connections before deleting tasks (unblocks I/O)
   - Tasks now check shouldStop and self-delete gracefully
   - Using eTaskGetState() to avoid double-deletion
   - Proper delay sequences between cleanup steps (like WebServerActivity)
   - Breaking discovery wait into smaller chunks for faster exit response

2. **Free space reporting**: Removed the confusing "ignore free space"
   message that required users to dig into Calibre plugin settings.
   Now reports 100GB free space which allows all practical transfers.
   Documented the proper SDK fix needed for actual free space queries.

Additional improvements:
- Added esp_task_wdt.h include for watchdog reset capability
- Added serial logging throughout shutdown sequence for debugging
- Improved code comments explaining shutdown behavior
2026-01-14 22:21:41 +00:00
..
activities Fix Calibre wireless exit freeze and improve free space reporting 2026-01-14 22:21:41 +00:00
images Move to SDK EInkDisplay and enable anti-aliased 2-bit text (#5) 2025-12-08 19:48:49 +11:00
network Fix exit button responsiveness and progress bar accuracy 2026-01-13 23:04:39 +00: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