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 78b63e9

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

‎libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp‎

Lines changed: 5 additions & 0 deletions
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

‎libraries/Arduino_CAN/src/R7FA6M5_CAN.h‎

Lines changed: 1 addition & 0 deletions
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)

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