This repository was archived by the owner on May 18, 2026. It is now read-only.
Commit 6c306ec
fix: catch GATT server disconnected error in MicrobitMore
- 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>1 parent 7a2b8e4 commit 6c306ec
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
861 | 867 | | |
862 | 868 | | |
863 | 869 | | |
| |||
999 | 1005 | | |
1000 | 1006 | | |
1001 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1002 | 1014 | | |
1003 | 1015 | | |
1004 | 1016 | | |
| |||
0 commit comments