Skip to content

Commit

Permalink
Merge pull request #908 from quartiq/feature/expose-platform
Browse files Browse the repository at this point in the history
Expose the serial-settings platform member
  • Loading branch information
jordens authored Jun 19, 2024
2 parents 9c882cf + 6871942 commit 58bc7da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions serial-settings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,14 @@ impl<'a, P: Platform<Y>, const Y: usize> Runner<'a, P, Y> {
self.0.interface.platform.interface_mut()
}

pub fn platform_mut(&mut self) -> &mut P {
&mut self.0.interface.platform
}

pub fn platform(&mut self) -> &P {
&self.0.interface.platform
}

/// Must be called periodically to process user input.
///
/// # Returns
Expand Down

0 comments on commit 58bc7da

Please sign in to comment.