Clarify charger battery ratings and keep host checks portable

This commit is contained in:
mikecarper committed 2026-10-06 11:05:05 -07:00
1 parent 7df554364f
commit 19cc68f0bc
3 files changed
+9 -4

No files matched your search

+2
View File
@@ -37,6 +37,8 @@ is failing, but it avoids silently resetting a saved lower target to 4.2 V.
| LilyGo T-Beam SX1262 or SX1276 | AXP2101 | 4.00, 4.10, 4.20, 4.35, 4.40 |
| LilyGo T-Beam S3 Supreme SX1262 | AXP2101 | 4.00, 4.10, 4.20, 4.35, 4.40 |
Targets above 4.2 V require batteries rated for the selected charge voltage.
The classic T-Beam driver detects the fitted AXP192 or AXP2101. Radio type does
not determine which PMU is present. T-Beam 1W uses a different power design and
does not support this setting.
+3 -3
View File
@@ -435,9 +435,9 @@ remain available.
### Switch the OTA release channel (observer builds)
- `ota branch` — shows the selected channel, the channel this build was made for, and the manifest base `ota check`/`ota update` will use.
- `ota branch prod` (alias `stable`) / `ota branch beta` (alias `dev`) — pull future `ota update`s from that channel. The selection is saved; run `ota update` to switch.
- `ota branch default` — follow the channel this build was made for.
- `ota branch` - shows the selected channel, the channel this build was made for, and the manifest base `ota check`/`ota update` will use.
- `ota branch prod` (alias `stable`) / `ota branch beta` (alias `dev`) - pull future `ota update`s from that channel. The selection is saved; run `ota update` to switch.
- `ota branch default` - follow the channel this build was made for.
The selector is saved only after the preferences transaction succeeds. A queued
`ota update` keeps the channel it checked, even if `ota branch` is changed before
+4 -1
View File
@@ -2,11 +2,14 @@
"""Run the production charger CLI with hardware/storage failure fixtures."""
from pathlib import Path
import os
import subprocess
import tempfile
import unittest
ROOT = Path(__file__).resolve().parents[1]
SANITIZER_FLAGS = [] if os.name == "nt" else [
"-fsanitize=address,undefined", "-fno-omit-frame-pointer", "-fno-pie", "-no-pie"]
class BatteryChargeCliTest(unittest.TestCase):
@@ -119,7 +122,7 @@ int main() {
(path / "test.cpp").write_text(source, encoding="ascii")
binary = path / "test"
subprocess.run(["c++", "-std=c++11", "-Wall", "-Wextra",
"-fsanitize=address,undefined", "-fno-omit-frame-pointer",
*SANITIZER_FLAGS,
"-I", str(ROOT / "src"), str(path / "test.cpp"),
"-o", str(binary)], check=True, capture_output=True)
subprocess.run([str(binary)], check=True)