mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Previously, isPolling was manually set in individual refresh functions, which didn't cover all BLE communication and could have race conditions. Now the communication indicator is driven by the service layer: - Added isCommunicating state to BrotherPP1Service - setCommunicating() called at queue processing boundaries - onCommunicationChange() callback subscription pattern - Hook subscribes to service communication state automatically Benefits: - Indicator shows for ALL BLE commands (status, progress, service count, etc) - Prevents race conditions from overlapping command queue processing - More accurate representation of actual BLE communication - Cleaner code - no manual setIsPolling in each function The indicator now properly shows whenever the command queue is being processed, regardless of which specific command triggered it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets | ||
| components | ||
| hooks | ||
| services | ||
| styles | ||
| types | ||
| utils | ||
| App.css | ||
| App.tsx | ||
| index.css | ||
| main.tsx | ||
| web-bluetooth.d.ts | ||