Skip to content

Fix false settings mismatch status and improve recording flow#73

Merged
kmatzen merged 2 commits intomainfrom
fix/group-status-and-recording-improvements
Feb 22, 2026
Merged

Fix false settings mismatch status and improve recording flow#73
kmatzen merged 2 commits intomainfrom
fix/group-status-and-recording-improvements

Conversation

@kmatzen
Copy link
Copy Markdown
Owner

@kmatzen kmatzen commented Feb 22, 2026

Summary

  • Fix false "Settings Mismatch" group status: GroupStatus.overallStatus incorrectly returned .settingsMismatch whenever any cameras were disconnected, even if all connected cameras had matching settings. Now properly tracks settingsMismatchCameras and modeMismatchCameras counts and only reports mismatch when cameras actually have mismatched settings.
  • Fix premature "Ready" status: Group only shows "Ready" when all cameras are ready/recording. During partial connection (some ready, some disconnected), it shows "Connecting" instead.
  • Stagger recording commands: Start/stop recording commands are now sent with 50ms stagger between cameras, reducing BLE stack congestion for multi-camera setups.
  • Log recording state transitions: INFO-level log when a camera's encoding state changes ("Camera X started/stopped recording"), making it easy to verify all cameras entered/exited recording.
  • Reduce mode mismatch log noise: Downgraded per-camera debug dump from INFO to DEBUG when no mismatches exist. Only logs details at INFO when there's an actual mismatch.

Test plan

  • Verified group status shows "Connecting" during partial connection (not "Settings Mismatch" or premature "Ready")
  • Verified group status transitions to "Ready" once all cameras are connected and initialized
  • Tested recording start/stop with 9 cameras
  • Verified reduced log noise for mode mismatch checks

Made with Cursor

GroupStatus.overallStatus incorrectly reported "Settings Mismatch" whenever
cameras were disconnected, even if all connected cameras matched. Now it
properly tracks per-camera settings/mode mismatch counts and only shows
"Ready" when every camera in the group is accounted for.

Also staggers recording commands (50ms apart) to reduce BLE congestion,
logs encoding state transitions per camera, and downgrades mode mismatch
check logging to DEBUG when no mismatches exist.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kmatzen kmatzen force-pushed the fix/group-status-and-recording-improvements branch from 14e31d5 to f469911 Compare February 22, 2026 19:30
Add settingsMismatchCameras and modeMismatchCameras to GroupStatus
init calls in test helper to match the updated struct.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kmatzen kmatzen merged commit 24e5aff into main Feb 22, 2026
1 check passed
@kmatzen kmatzen mentioned this pull request Feb 22, 2026
15 tasks
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