Add R1 ring battery indicator

This commit is contained in:
James Babcock committed 2026-09-09 11:31:44 -07:00
1 parent 92d5857c3e
commit adf9fa89c4
10 files changed
+111 -32

No files matched your search

+5
View File
@@ -22,3 +22,8 @@ Compass diagnostics have focused UI and wire-format checks:
The protocol check also compiles the production Java parser, so it needs a
JDK (`JAVA_HOME`, or `javac` and `java` on `PATH`). Its golden packet is shared
with the firmware encoder test in `g2flash/tests/compass_diagnostics_test.c`.
R1 battery field-106 decoding (valid zero, charging, unavailable/disconnected,
legacy firmware, malformed messages) uses the same C/Java golden packet:
node --test tests/ring-battery-protocol.test.cjs