Skip to content

Commit

Permalink
Update id.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
dstric-aqueduct committed Nov 30, 2022
1 parent b0e15d7 commit 486a7c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions imxrt1060-hal/src/can/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ pub enum Id {
Extended(ExtendedId),
}

impl Default for Id {
fn default() -> Self {
Id::Standard(StandardId::new(0).unwrap())
}
}

impl From<StandardId> for Id {
#[inline]
fn from(id: StandardId) -> Self {
Expand Down

0 comments on commit 486a7c4

Please sign in to comment.