Skip to content

Reject implausible RCC6 battery readings - #4

Merged
n30nex merged 1 commit into
mainfrom
codex/rcc6-battery-plausibility
Aug 23, 2026
Merged

Reject implausible RCC6 battery readings#4
n30nex merged 1 commit into
mainfrom
codex/rcc6-battery-plausibility

Conversation

@n30nex

@n30nex n30nex commented Aug 22, 2026

Copy link
Copy Markdown
Owner

What changed

  • reject RCC6 battery readings above the single-cell 4.50 V plausibility ceiling
  • represent invalid readings as unavailable instead of 0.00 V or a full battery
  • lock the behavior into the repository's static contracts

Why

An RCC6 on USB reported 7.45 V because the switched ADC divider can produce an invalid sample. The firmware must not present that as a battery measurement.

Validation

  • repository static contracts pass
  • diff check passes

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@n30nex
n30nex force-pushed the codex/rcc6-battery-plausibility branch from 5c4f1de to f97eddf Compare August 22, 2026 23:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c4f1ded52

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread variants/heltec_rcc6/heltec_rcc6.cpp
@n30nex
n30nex force-pushed the codex/rcc6-battery-plausibility branch from f97eddf to a4d68e8 Compare August 23, 2026 00:05
@n30nex
n30nex force-pushed the codex/rcc6-battery-plausibility branch from a4d68e8 to 6e2b898 Compare August 23, 2026 00:09
@n30nex
n30nex merged commit 08c0a8a into main Aug 23, 2026
9 checks passed
@n30nex
n30nex deleted the codex/rcc6-battery-plausibility branch August 23, 2026 00:14
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