mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +00:00
Self-review caught a regression I'd just introduced: feeding hasConnection() from isClientConnected() (BLE *or* USB) broke the GPX-export collision warning in TrailScreen, which relies on hasConnection() meaning "BLE app connected" (BLE → USB dump is safe; otherwise the app may be on USB → warn). Correct split: - hasConnection() ← isBLEConnected() — BLE-specific consumers: BT status indicator, pairing PIN, GPX-export warning. - isClientConnected() (BLE bonded OR open USB-CDC port) used directly only by the Auto buzzer mute and message-wake, which should react to either transport. Builds clean on dual (OLED + e-ink) and pure-BLE. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>