From 4551d561ce954a2b2f0cd606e46e52f71c0a7ed5 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 2 Aug 2023 08:28:29 +0200 Subject: [PATCH] Missing "else" statements prevents configuration of CAN0. --- libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp b/libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp index 2cb065038..e0ed27ed7 100644 --- a/libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp +++ b/libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp @@ -113,7 +113,7 @@ bool R7FA6M5_CAN::begin(CanBitRate const can_bitrate) /* Set the pointer to the right filtering structure. */ if (_canfd_cfg.channel == 0) _canfd_extended_cfg.p_afl = CANFD0_AFL; - if (_canfd_cfg.channel == 1) + else if (_canfd_cfg.channel == 1) _canfd_extended_cfg.p_afl = CANFD1_AFL; else init_ok &= false;