From 5c0469d98cdf51500c25c02580c11a7c3d68a739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Thu, 26 Jun 2025 08:39:34 +0200 Subject: [PATCH] Use one more bit for bus clearing (#3696) --- .github/workflows/documentation.yml | 2 +- esp-hal/src/i2c/master/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 8978feec4..bbbc17e87 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -185,4 +185,4 @@ jobs: - name: Install cargo-docs-rs run: cargo install cargo-docs-rs --locked - name: Run cargo-docs-rs - run: cd esp-hal && cargo docs-rs \ No newline at end of file + run: cd esp-hal && cargo docs-rs diff --git a/esp-hal/src/i2c/master/mod.rs b/esp-hal/src/i2c/master/mod.rs index f4797c336..4dc490a78 100644 --- a/esp-hal/src/i2c/master/mod.rs +++ b/esp-hal/src/i2c/master/mod.rs @@ -2802,7 +2802,7 @@ mod bus_clear { impl<'a> ClearBusFuture<'a> { // Number of SCL pulses to clear the bus - const BUS_CLEAR_BITS: u8 = 9; + const BUS_CLEAR_BITS: u8 = 10; pub fn new(driver: Driver<'a>) -> Self { let mut this = Self { driver };