Skip to content

fix: catch GATT server disconnected error in MicrobitMore#95

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

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

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.

1 participant