Skip to content

Commit d68fded

Browse files
Robert KovacsicsnewAM
authored andcommitted
Fix typo where EEPROM drive-current sets schmitt input instead
1 parent 210a22f commit d68fded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,12 +1527,12 @@ macro_rules! impl_bus_pins {
15271527
/// This is the **unchecked** raw value retrived from the EEPROM and it may
15281528
/// not be a valid value.
15291529
pub fn [<$FIELD:lower _drive_current_unchecked>](&self) -> u8 {
1530-
(self.0).[<$FIELD:upper SchmittInput>]
1530+
(self.0).[<$FIELD:upper DriveCurrent>]
15311531
}
15321532

15331533
#[doc = "Set drive current for bus " $FIELD "."]
15341534
pub fn [<set_ $FIELD:lower _drive_current>](&mut self, value: DriveCurrent) {
1535-
(self.0).[<$FIELD:upper SchmittInput>] = value as u8
1535+
(self.0).[<$FIELD:upper DriveCurrent>] = value as u8
15361536
}
15371537
}
15381538
)*

0 commit comments

Comments
 (0)