Skip to content

Commit 3959ede

Browse files
committed
Derive defmt for new enums
1 parent 50116d4 commit 3959ede

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/endpoint.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub type EndpointIn<'a, B> = Endpoint<'a, B, In>;
3131

3232
/// Isochronous transfers employ one of three synchronization schemes. See USB 2.0 spec 5.12.4.1.
3333
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
34+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
3435
pub enum IsochronousSynchronizationType {
3536
/// Synchronization is not implemented for this endpoint.
3637
NoSynchronization,
@@ -45,6 +46,7 @@ pub enum IsochronousSynchronizationType {
4546
/// Intended use of an isochronous endpoint, see USB 2.0 spec sections 5.12 and 9.6.6.
4647
/// Associations between data and feedback endpoints are described in section 9.6.6.
4748
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
49+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
4850
pub enum IsochronousUsageType {
4951
/// Endpoint is used for isochronous data.
5052
Data,

0 commit comments

Comments
 (0)