Skip to content

Commit

Permalink
Merge pull request #85 from inomotech-foss/fix-mux-msg-id
Browse files Browse the repository at this point in the history
Use message name instead of self
  • Loading branch information
Pascal Hertleif authored Aug 28, 2024
2 parents 6283aa4 + 27fc4cc commit af7cbf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,8 @@ fn signal_to_payload(mut w: impl Write, signal: &Signal, msg: &Message) -> Resul
}
writeln!(
&mut w,
" .ok_or(CanError::ParameterOutOfRange {{ message_id: Self::MESSAGE_ID }})?;",
" .ok_or(CanError::ParameterOutOfRange {{ message_id: {}::MESSAGE_ID }})?;",
type_name(msg.message_name())
)?;
writeln!(
&mut w,
Expand Down

0 comments on commit af7cbf3

Please sign in to comment.