Skip to content
Snippets Groups Projects
Commit ca682d29 authored by Federico Mandelli's avatar Federico Mandelli
Browse files

[CanProtocol] Fixed default argument bug

parent 8cca312f
Branches
No related tags found
Loading
......@@ -31,7 +31,7 @@ namespace Canbus
{
CanProtocol::CanProtocol(CanbusDriver* can, MsgHandler onReceive,
uint32_t baudRate = 500 * 1000)
uint32_t baudRate)
: can(can), onReceive(onReceive)
{
loadEstimator = new BusLoadEstimation(baudRate);
......
......@@ -61,7 +61,8 @@ public:
* @param baudRate used to calculate bus usage (default 500*1000).
*/
CanProtocol(CanbusDriver* can, MsgHandler onReceive, uint32_t baudRate);
CanProtocol(CanbusDriver* can, MsgHandler onReceive,
uint32_t baudRate = 500 * 1000);
/**
* @brief Start the receiving and sending threads.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment