Migration guide
This commit is contained in:
parent
04d9f3ae00
commit
a3cb11875d
@ -326,6 +326,29 @@ To avoid abbreviations and contractions (as per the esp-hal guidelines), some er
|
|||||||
+ Error::ZeroLengthInvalid
|
+ Error::ZeroLengthInvalid
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## I2C Configuration changes
|
||||||
|
|
||||||
|
The timeout field in `Config` changed from `Option<u32>` to a dedicated `Timeout` enum.
|
||||||
|
|
||||||
|
```diff
|
||||||
|
- timeout: Some(10)
|
||||||
|
+ timeout: Timeout::BusCycles(10)
|
||||||
|
```
|
||||||
|
|
||||||
|
or (ESP32, ESP32-S2)
|
||||||
|
|
||||||
|
```diff
|
||||||
|
- timeout: None
|
||||||
|
+ timeout: Timeout::Max
|
||||||
|
```
|
||||||
|
|
||||||
|
or (other chips)
|
||||||
|
|
||||||
|
```diff
|
||||||
|
- timeout: None
|
||||||
|
+ timeout: Timeout::Disabled
|
||||||
|
```
|
||||||
|
|
||||||
## The crate prelude has been removed
|
## The crate prelude has been removed
|
||||||
|
|
||||||
The reexports that were previously part of the prelude are available through other paths:
|
The reexports that were previously part of the prelude are available through other paths:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user