Skip to content

Commit 120404d

Browse files
committed
Add defmt::Format derive to serial error
1 parent 36557b4 commit 120404d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/serial.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub enum Event {
3838

3939
/// Serial error
4040
#[derive(Debug)]
41+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
4142
#[non_exhaustive]
4243
pub enum Error {
4344
/// Framing error

0 commit comments

Comments
 (0)