Skip to content

Commit 78b63e9

Browse files
authored
[Arduino_CAN] fix regression introduced in #296. (#300)
1 parent 06bbfea commit 78b63e9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ R7FA6M5_CAN::R7FA6M5_CAN(int const can_tx_pin, int const can_rx_pin)
100100
**************************************************************************************/
101101

102102
bool R7FA6M5_CAN::begin(CanBitRate const can_bitrate)
103+
{
104+
return begin(static_cast<uint32_t>(can_bitrate));
105+
}
106+
107+
bool R7FA6M5_CAN::begin(uint32_t const can_bitrate)
103108
{
104109
bool init_ok = true;
105110

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

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class R7FA6M5_CAN final : public HardwareCAN
5454

5555

5656
bool begin(CanBitRate const can_bitrate) override;
57+
bool begin(uint32_t const can_bitrate);
5758
void end() override;
5859

5960

0 commit comments

Comments
 (0)