Skip to content

Allow changing driver config on the fly#55

Open
tullom wants to merge 1 commit intoOpenDevicePartnership:mainfrom
tullom:dynamic-config
Open

Allow changing driver config on the fly#55
tullom wants to merge 1 commit intoOpenDevicePartnership:mainfrom
tullom:dynamic-config

Conversation

@tullom
Copy link
Contributor

@tullom tullom commented Feb 17, 2026

  • PEC, timeout time, and number of retries can now be changed without creating a new instance of the driver
  • Uprev to v0.8.1
  • Remove deprecated authors field in Cargo.toml

@tullom tullom self-assigned this Feb 17, 2026
@tullom tullom added the enhancement New feature or request label Feb 17, 2026
@tullom tullom requested a review from a team as a code owner February 17, 2026 21:35
@tullom tullom force-pushed the dynamic-config branch 2 times, most recently from 99075fb to 0dcf687 Compare February 17, 2026 21:40
@tullom tullom moved this to In review in Embedded Controller Feb 17, 2026
RobertZ2011
RobertZ2011 previously approved these changes Feb 17, 2026
///
/// Concurrency is guaranteed by the mutable borrow, ensuring the config cannot change
/// while a register transaction is in flight.
pub fn change_config(&mut self, config: Config) {
Copy link
Contributor

@RobertZ2011 RobertZ2011 Feb 17, 2026

Choose a reason for hiding this comment

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

nit: I think I'd favor either set_config or update_config. Any other opinions here?

- PEC, timeout time, and number of retries can now be changed without
  creating a new instance of the driver
- Uprev to v0.8.1
- Remove deprecated `authors` field in Cargo.toml
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: In review

Development

Successfully merging this pull request may close these issues.

2 participants