Skip to content

Commit 99bbaef

Browse files
authored
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

Diff for: libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp

+1-1
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+
else if (_canfd_cfg.channel == 1)
117117
_canfd_extended_cfg.p_afl = CANFD1_AFL;
118118
else
119119
init_ok &= false;

0 commit comments

Comments
 (0)