Skip to content

Commit d0e8257

Browse files
committed
Derives on InterruptReason
1 parent eaed96e commit d0e8257

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ use ptp::EthernetPTP;
5757

5858
/// A summary of the reasons for the occurence of an
5959
/// interrupt
60+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
61+
#[derive(Clone, Copy, Debug, PartialEq)]
6062
pub struct InterruptReason {
6163
/// A packet has arrived and is ready for processing.
6264
pub rx: bool,

0 commit comments

Comments
 (0)