mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-08 00:27:39 +03:00
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 |
||
|---|---|---|
| .. | ||
| 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 | ||