Repository navigation
Require valid BrainAlive calibration before streaming - #879
Merged
Merged
Conversation
Andrey1994
force-pushed
the
codex/pr-878-brainalive-handshake
branch
from
November 9, 2026 21:22
633da5f to
0ce141d
Compare
Andrey1994
marked this pull request as ready for review
November 9, 2026 21:30
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BrainAlive could report successful stream startup without receiving gain and reference-voltage configuration, then record zero-valued EEG samples. Startup now waits for valid configuration and returns BOARD_NOT_READY_ERROR on timeout. Packets without valid calibration are discarded, and calibration is cleared between sessions.
Configuration updates and sample scaling use a mutex-protected calibration snapshot. Seven tests exercise the actual driver for missing/invalid calibration, delayed handshakes, session reset, signed samples, and combined gain above the previous integer-overflow threshold. The conversion-test formatting error is also fixed.
This PR contains only the follow-up to the merged #878.
Validation: Linux BoardController build with PIEEG enabled and warnings treated as errors; all 62 unit tests; clang-format 12.0.1 across all 229 non-excluded source files. All passed locally. GitHub Actions is being checked on the rebased commit. No hardware-in-the-loop testing was performed.