Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

fix: catch GATT server disconnected error in MicrobitMore#95

Merged
takaokouji merged 1 commit into
developfrom
fix/microbit-more-gatt-error
Jan 25, 2026
Merged

fix: catch GATT server disconnected error in MicrobitMore#95
takaokouji merged 1 commit into
developfrom
fix/microbit-more-gatt-error

Conversation

@takaokouji
Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant