Skip to content

Commit

Permalink
Update mipidsi/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Fuest <[email protected]>
  • Loading branch information
almindor and rfuest authored Jan 13, 2024
1 parent e48f1da commit 8d394e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mipidsi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,14 @@ where
Ok(())
}

///
/// Returns the DCS interface for sending raw commands.
/// *WARNING*: user is responsible for ensuring display state validity
///
/// # Safety
///
/// Sending raw commands to the controller can lead to undefined behaviour,
/// because the rest of the code isn't aware of any state changes that were caused by sending raw commands.
/// The user must ensure that the state of the controller isn't altered in a way that interferes with the normal
/// operation of this crate.
pub unsafe fn dcs(&mut self) -> &mut Dcs<DI> {
&mut self.dcs
}
Expand Down

0 comments on commit 8d394e7

Please sign in to comment.