Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 99bbaef

Browse files
Merge pull request #80 from arduino/fix-c33-can0-cfg
[Arduino_CAN/Portenta_C33] Bugfix to allow configuration of CAN0 (CAN).
2 parents 9a63d63 + 4551d56 commit 99bbaef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ bool R7FA6M5_CAN::begin(CanBitRate const can_bitrate)
113113
/* Set the pointer to the right filtering structure. */
114114
if (_canfd_cfg.channel == 0)
115115
_canfd_extended_cfg.p_afl = CANFD0_AFL;
116-
if (_canfd_cfg.channel == 1)
116+
elseif (_canfd_cfg.channel == 1)
117117
_canfd_extended_cfg.p_afl = CANFD1_AFL;
118118
else
119119
init_ok &= false;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /