Skip to content

Commit b5887b2

Browse files
authored
Merge pull request #4567 from vDorst/i2c-pull-down-fix
stm32/i2c: Pull-down enabled when non-pull was requested.
2 parents 6433d7b + 52464b3 commit b5887b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

embassy-stm32/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
<!-- next-header -->
99
## Unreleased - ReleaseDate
1010

11+
- fix: stm32/i2c: pull-down was enabled instead of pull-none when no internal pull-up was needed.
1112
- feat: Improve blocking hash speed
1213
- fix: Fix vrefbuf building with log feature
1314
- fix: Fix performing a hash after performing a hmac

embassy-stm32/src/i2c/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl Config {
156156
self.gpio_speed,
157157
match self.scl_pullup {
158158
true => Pull::Up,
159-
false => Pull::Down,
159+
false => Pull::None,
160160
},
161161
);
162162
}
@@ -170,7 +170,7 @@ impl Config {
170170
self.gpio_speed,
171171
match self.sda_pullup {
172172
true => Pull::Up,
173-
false => Pull::Down,
173+
false => Pull::None,
174174
},
175175
);
176176
}

0 commit comments

Comments
 (0)