Skip to content

Commit 4551d56

Browse files
committed
Missing "else" statements prevents configuration of CAN0.
1 parent 9a63d63 commit 4551d56

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)