• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kaidokert / rm32 / 25188612004
63%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 08:49PM UTC
Jobs 1
Files 34
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Apr 2026 08:49PM UTC coverage: 61.133% (-0.2%) from 61.283%
25188612004

push

github

web-flow
Extract shared MainState constructor and apply_motor_config (#15)

* Extract shared MainState constructor and apply_motor_config

MainState was manually constructed with 30+ fields in both firmware
(main.rs) and harness (harness.rs), creating init divergence risk
flagged by reviewers on PRs 4, 5, 6, and 7.

Add MainState::new(MainStateParams) that takes the 7 board/chip
parameters that actually differ between contexts. Both firmware and
harness now call this single constructor.

Add MainState::apply_motor_config() to share the EEPROM-derived
PID/KV/voltage config application that was also duplicated.

* Make use_current_limit idempotent and sync config before apply

use_current_limit was only ever set to true, never reset on re-apply.
Changed to unconditional assignment so disabling current_limit in
config correctly clears the flag.

Sync harness.main.config from harness.config before apply_motor_config
in load_eeprom so the current_limit check sees fresh config state.

0 of 53 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

3248 of 5313 relevant lines covered (61.13%)

593.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
48
61.72
-8.01% rm32/src/main_state.rs
5
0.0
0.0% rm32/src/bin/harness.rs

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% rm32/src/bin/harness.rs
Jobs
ID Job ID Ran Files Coverage
1 25188612004.1 30 Apr 2026 08:49PM UTC 34
61.13
GitHub Action Run
Source Files on build 25188612004
  • Tree
  • List 34
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25188612004
  • a5d79c80 on github
  • Prev Build on main (#25187857383)
  • Next Build on main (#25190758151)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc