-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Use new
hal::stm32f1::can_peripheral_manager
ctor in demos (#90)
In order to prevent applications unassociated from the can application to continue to work as usual, a try/catch is put around the construction of the `hal::stm32f1::can_peripheral_manager` object. If construction fails, then none of the can interface optionals will be set and the program will run without them. If the can application is executed and the optionals are nullopt, then access will throw and will terminate the application which is the intended behavior.
- Loading branch information
Showing
2 changed files
with
34 additions
and
20 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