Cargo format

This commit is contained in:
Joël Schulz-Ansres 2024-05-22 23:45:26 +02:00
parent 2f7bba4668
commit 89017d338f

View file

@ -690,18 +690,14 @@ pub(crate) trait SealedPin {
{ {
let crlh = if n < 8 { 0 } else { 1 }; let crlh = if n < 8 { 0 } else { 1 };
match r.cr(crlh).read().mode(n % 8) { match r.cr(crlh).read().mode(n % 8) {
vals::Mode::INPUT => { vals::Mode::INPUT => match r.cr(crlh).read().cnf_in(n % 8) {
match r.cr(crlh).read().cnf_in(n % 8) { vals::CnfIn::PULL => match r.odr().read().odr(n % 8) {
vals::CnfIn::PULL => {
match r.odr().read().odr(n % 8) {
vals::Odr::LOW => Pull::Down, vals::Odr::LOW => Pull::Down,
vals::Odr::HIGH => Pull::Up vals::Odr::HIGH => Pull::Up,
}
}, },
_ => Pull::None _ => Pull::None,
}
}, },
_ => Pull::None _ => Pull::None,
} }
} }
#[cfg(gpio_v2)] #[cfg(gpio_v2)]