Skip to content

Commit

Permalink
Merge pull request #726 from ithinuel/add-defmt-format-to-i2c-periphe…
Browse files Browse the repository at this point in the history
…ral-evt

Add derive(defmt::Format) to i2c::peripheral::I2CEvent
  • Loading branch information
ithinuel authored Dec 6, 2023
2 parents cfd6c12 + 9293511 commit 28ec527
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rp2040-hal/src/i2c/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use crate::{

/// I2C bus events
#[derive(Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum I2CEvent {
/// Start condition has been detected.
Start,
Expand Down

0 comments on commit 28ec527

Please sign in to comment.