Enable internal pullups for i2c

This commit is contained in:
9names 2021-08-21 02:07:56 +10:00
parent dbcaf1933a
commit e00a432ed5

View file

@ -88,6 +88,10 @@ impl From<DynPinMode> for ModeFields {
UsbAux => 9, UsbAux => 9,
}; };
fields.inen = true; fields.inen = true;
if func == I2C {
fields.pue = true;
fields.pde = false;
}
} }
}; };