mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 04:51:31 +11:00
Remove setting fields set by default()
This commit is contained in:
parent
021221ede3
commit
151b754d90
|
@ -38,11 +38,9 @@ impl From<DynPinMode> for ModeFields {
|
|||
Floating => (),
|
||||
PullDown => {
|
||||
fields.pde = true;
|
||||
fields.pue = false;
|
||||
}
|
||||
PullUp => {
|
||||
fields.pue = true;
|
||||
fields.pde = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,11 +54,9 @@ impl From<DynPinMode> for ModeFields {
|
|||
Floating => (),
|
||||
PullDown => {
|
||||
fields.pde = true;
|
||||
fields.pue = false;
|
||||
}
|
||||
PullUp => {
|
||||
fields.pue = true;
|
||||
fields.pde = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +90,6 @@ impl From<DynPinMode> for ModeFields {
|
|||
fields.inen = true;
|
||||
if func == I2C {
|
||||
fields.pue = true;
|
||||
fields.pde = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue