Skip to content

FSService: fix crash after opening dirs over ble - #2506

Open
liamcharger wants to merge 1 commit into
InfiniTimeOrg:mainfrom
liamcharger:fsservice-close-handles
Open

liamcharger wants to merge 1 commit into
InfiniTimeOrg:mainfrom
liamcharger:fsservice-close-handles

Conversation

@liamcharger

@liamcharger liamcharger commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #2021
Fixes #1579

The issue was folders not being closed after opening (they were in an assert which isn't in release builds). That caused littlefs to hold a stale handle, which crashed the watch on the next file write.. I also expanded the error handling, so it also now checks if the target is an actual file, if the path is missing, is a directory, or fails to open, the connected app receives an error

@github-actions

Copy link
Copy Markdown

Build size and comparison to main:

Section Size Difference
text 394624B 32B
data 936B 0B
bss 22960B 0B

Run in InfiniEmu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Watch freezes and reboot after interacting with external resources Watch crashes when updating settings after filesystem read via BLE

1 participant