Skip to content

Commit bd038ff

Browse files
astapletonusbalbin
andcommitted
Add defmt derive
Co-authored-by: Albin Hedman <[email protected]>
1 parent 5585eae commit bd038ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/i2c.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ pub enum Error {
218218
}
219219

220220
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
221+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
221222
pub enum TargetError {
222223
/// Indicates that a stop or repeat start was received while reading, or
223224
/// while explicitly waiting for a controller read or write event.

0 commit comments

Comments
 (0)