-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cantool)!: CopyFrom accepts canrunner.Node Rx messages
When updating the signature for CopyFrom we accidentally broke a workflow where receive messages in a `canrunner.Node` and then copy the data from them using `CopyFrom`. This commit restores CopyFrom to accept a "message reader" type, but extends that type to also require that values implement `Frame() can.Frame`. All messages generated by cantool already implements `Frame() can.Frame` so only mocks should be affected. BREAKING CHANGE: This restores old signature of CopyFrom to accept a message reader instead of a message instance to copy from.
- Loading branch information
Showing
3 changed files
with
47 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters