Skip to content

Commit

Permalink
[Arduino_CAN] fix regression introduced in #296. (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger authored May 3, 2024
1 parent 06bbfea commit 78b63e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/Arduino_CAN/src/R7FA6M5_CAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ R7FA6M5_CAN::R7FA6M5_CAN(int const can_tx_pin, int const can_rx_pin)
**************************************************************************************/

bool R7FA6M5_CAN::begin(CanBitRate const can_bitrate)
{
return begin(static_cast<uint32_t>(can_bitrate));
}

bool R7FA6M5_CAN::begin(uint32_t const can_bitrate)
{
bool init_ok = true;

Expand Down
1 change: 1 addition & 0 deletions libraries/Arduino_CAN/src/R7FA6M5_CAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class R7FA6M5_CAN final : public HardwareCAN


bool begin(CanBitRate const can_bitrate) override;
bool begin(uint32_t const can_bitrate);
void end() override;


Expand Down

0 comments on commit 78b63e9

Please sign in to comment.