Skip to content

Conversation

@takaokouji
Copy link

Catch GATT server disconnected error in MicrobitMore to avoid unhandled promise rejections.

- Added .catch() to BLE read operations in updateState and updateMotion
- Ensures bleBusy flag is cleared and error is logged
- Prevents unhandled promise rejections when BLE connection is lost

Co-Authored-By: Gemini <noreply@google.com>
@takaokouji takaokouji merged commit 872672d into develop Jan 25, 2026
1 check passed
@takaokouji takaokouji deleted the fix/microbit-more-gatt-error branch January 25, 2026 11:55
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.

2 participants