mirror of
https://github.com/nkbai/book.git
synced 2026-09-05 22:14:54 +08:00
Fix set_output_status -> set_output_mode
This commit is contained in:
@@ -79,7 +79,7 @@ impl Gpio {
|
||||
});
|
||||
}
|
||||
|
||||
pub fn set_output_status(&mut self, is_high: bool) {
|
||||
pub fn set_output_mode(&mut self, is_high: bool) {
|
||||
self.periph.modify(|_r, w| {
|
||||
w.output_mode.set_bit(is_high)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user