Skip to content

Commit

Permalink
Fix migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Jan 14, 2025
1 parent 164bb62 commit d9f2032
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esp-hal/MIGRATING-0.22.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,22 +335,22 @@ The `AckCheckFailed` variant changed to `AcknowledgeCheckFailed(AcknowledgeCheck

## I2C Configuration changes

The timeout field in `Config` changed from `Option<u32>` to a dedicated `SclTimeout` enum.
The timeout field in `Config` changed from `Option<u32>` to a dedicated `BusTimeout` enum.

```diff
- timeout: Some(10)
+ timeout: SclTimeout::BusCycles(10)
+ timeout: BusTimeout::BusCycles(10)
```

```diff
- timeout: None
+ timeout: SclTimeout::Max
+ timeout: BusTimeout::Max
```

(Disabled isn't supported on ESP32 / ESP32-S2)
```diff
- timeout: None
+ timeout: SclTimeout::Disabled
+ timeout: BusTimeout::Disabled
```

## The crate prelude has been removed
Expand Down

0 comments on commit d9f2032

Please sign in to comment.