Skip to content

Commit 038f15a

Browse files
authored
Replace default-parameter with function overloading. (#23)
This is a more futureproof version, should further begin functions be added in the future.
1 parent 17ba174 commit 038f15a

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
@@ -84,7 +84,8 @@ class BraccioClass
8484

8585
BraccioClass();
8686

87-
bool begin(voidFuncPtr customMenu = nullptr);
87+
inline bool begin() { return begin(nullptr); }
88+
bool begin(voidFuncPtr customMenu);
8889

8990
// setters
9091
MotorsWrapper move(int joint_index) {

0 commit comments

Comments
 (0)