mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 13:01:30 +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 => (),
|
Floating => (),
|
||||||
PullDown => {
|
PullDown => {
|
||||||
fields.pde = true;
|
fields.pde = true;
|
||||||
fields.pue = false;
|
|
||||||
}
|
}
|
||||||
PullUp => {
|
PullUp => {
|
||||||
fields.pue = true;
|
fields.pue = true;
|
||||||
fields.pde = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,11 +54,9 @@ impl From<DynPinMode> for ModeFields {
|
||||||
Floating => (),
|
Floating => (),
|
||||||
PullDown => {
|
PullDown => {
|
||||||
fields.pde = true;
|
fields.pde = true;
|
||||||
fields.pue = false;
|
|
||||||
}
|
}
|
||||||
PullUp => {
|
PullUp => {
|
||||||
fields.pue = true;
|
fields.pue = true;
|
||||||
fields.pde = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,7 +90,6 @@ impl From<DynPinMode> for ModeFields {
|
||||||
fields.inen = true;
|
fields.inen = true;
|
||||||
if func == I2C {
|
if func == I2C {
|
||||||
fields.pue = true;
|
fields.pue = true;
|
||||||
fields.pde = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue