zephyr: drivers: adc: adc_emul_generator: Wrap generated values when reaching channel resolution #1607
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 172 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.308
Real PR Conversation Timeline
1 comments
"Review active on #1607"
general
weight: 0.35
MaureenHelm
The generator incremented each channel's raw value without bound, so after enough samples it reached values which could no longer fit the channel's configured resolution. In testing, this might seem like an issue with iiod or the libiio client app, such as Scopy, as the value exposed by the emulated ADC is expected to be continuously changing, but it actually remains constant (see image below).
<img width="2560" height="1364" alt="Screenshot 2026-10-20 122406" src="https://github.com/user-attachments/assets/a983df31-18d4-4b9e-be01-99940568a380" />
Added wrapping mechanism so the samples continuously cycle through the channel's entire range.
<img width="2557" height="1369" alt="Screenshot 2026-10-20 122138" src="https://github.com/user-attachments/assets/787cd51f-01b6-4f53-bf78-2e55d41e61ef" />
PR Type
PR Checklist