Use one more bit for bus clearing (#3696)

This commit is contained in:
Dániel Buga 2025-06-26 08:39:34 +02:00 committed by GitHub
parent d91806197d
commit 5c0469d98c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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
run: cd esp-hal && cargo docs-rs

View File

@ -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 };