mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
stm32/i2c: disable pullup instead of pulldown
This commit is contained in:
parent
456c226b29
commit
3870411a4a
@ -88,7 +88,7 @@ impl Config {
|
|||||||
Speed::Medium,
|
Speed::Medium,
|
||||||
match self.scl_pullup {
|
match self.scl_pullup {
|
||||||
true => Pull::Up,
|
true => Pull::Up,
|
||||||
false => Pull::Down,
|
false => Pull::None,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ impl Config {
|
|||||||
Speed::Medium,
|
Speed::Medium,
|
||||||
match self.sda_pullup {
|
match self.sda_pullup {
|
||||||
true => Pull::Up,
|
true => Pull::Up,
|
||||||
false => Pull::Down,
|
false => Pull::None,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user