Skip to content

Commit d7cfc36

Browse files
authored
Replace default parameter value with inline function definition in begin. (#58)
1 parent 471418a commit d7cfc36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Braccio++.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ class BraccioClass
6565
BraccioClass();
6666

6767
inline bool begin() { return begin(nullptr); }
68-
bool begin(voidFuncPtr custom_menu, bool const wait_for_all_motor_connected = true);
68+
inline bool begin(voidFuncPtr custom_menu) { return begin(custom_menu, true); }
69+
bool begin(voidFuncPtr custom_menu, bool const wait_for_all_motor_connected);
6970

7071
void pingOn();
7172
void pingOff();

0 commit comments

Comments
 (0)