Skip to content

Battery service refactor#698

Merged
tullom merged 2 commits intoOpenDevicePartnership:v0.2.0from
tullom:battery-service-refactor
Feb 3, 2026
Merged

Battery service refactor#698
tullom merged 2 commits intoOpenDevicePartnership:v0.2.0from
tullom:battery-service-refactor

Conversation

@tullom
Copy link
Contributor

@tullom tullom commented Jan 30, 2026

  • Remove static SERVICE in battery service
  • Replace battery service free functions with methods on Service
  • Add battery Device as an argument to battery_service::task() to ensure all devices are registered before the state machine starts
  • Update examples

@tullom tullom self-assigned this Jan 30, 2026
@tullom tullom added the enhancement New feature or request label Jan 30, 2026
@tullom tullom requested review from a team as code owners January 30, 2026 23:33
@tullom tullom requested review from chchongmsft and thdesil January 30, 2026 23:33
@tullom tullom force-pushed the battery-service-refactor branch from 81cac7a to 7deb2fb Compare February 2, 2026 19:22
@tullom tullom requested a review from RobertZ2011 February 2, 2026 19:23
@tullom tullom moved this to In review in Embedded Controller Feb 3, 2026
- Remove static `SERVICE` in battery service
- Replace battery service free functions with methods on `Service`
- Add battery `Device` as an argument to `battery_service::task()` to
  ensure all devices are registered before the state machine starts
- Update examples
@tullom tullom force-pushed the battery-service-refactor branch from 7deb2fb to 9f52ddf Compare February 3, 2026 18:22
@tullom tullom merged commit b21b275 into OpenDevicePartnership:v0.2.0 Feb 3, 2026
15 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Embedded Controller Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants