Skip to content

Commit

Permalink
Merge pull request #704 from ithinuel/document-i2c-error-derives
Browse files Browse the repository at this point in the history
Document what's happening with derives on i2c::Error
  • Loading branch information
thejpster authored Oct 21, 2023
2 parents 9c17a2d + 51badca commit 14b6ee3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rp2040-hal/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ impl I2cDevice for pac::I2C1 {

/// I2C error
#[non_exhaustive]
// when eh1_0_alpha is set, Debug & defmt::Format are manually implemented
// to rely on eh1.0's ErrorKind.
#[cfg_attr(not(feature = "eh1_0_alpha"), derive(Debug))]
#[cfg_attr(
all(feature = "defmt", not(feature = "eh1_0_alpha")),
Expand Down

0 comments on commit 14b6ee3

Please sign in to comment.