Skip to content

Commit af7cbf3

Browse files
author
Pascal Hertleif
authored
Merge pull request #85 from inomotech-foss/fix-mux-msg-id
Use message name instead of self
2 parents 6283aa4 + 27fc4cc commit af7cbf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,8 @@ fn signal_to_payload(mut w: impl Write, signal: &Signal, msg: &Message) -> Resul
927927
}
928928
writeln!(
929929
&mut w,
930-
" .ok_or(CanError::ParameterOutOfRange {{ message_id: Self::MESSAGE_ID }})?;",
930+
" .ok_or(CanError::ParameterOutOfRange {{ message_id: {}::MESSAGE_ID }})?;",
931+
type_name(msg.message_name())
931932
)?;
932933
writeln!(
933934
&mut w,

0 commit comments

Comments
 (0)