Skip to content

Commit e3c2260

Browse files
committed
Remove warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
1 parent 2d53acc commit e3c2260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/communication/Commander.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class Commander
237237
* - velocity (open and closed loop) : velocity torque (ex.M10 2.5 or M10 to only chanage the target witout limits)
238238
* - angle (open and closed loop) : angle velocity torque (ex.M3.5 10 2.5 or M3.5 to only chanage the target witout limits)
239239
*/
240-
void motion(FOCMotor* motor, char* user_cmd, char* separator = " ");
240+
void motion(FOCMotor* motor, char* user_cmd, char* separator = (char *)" ");
241241

242242
private:
243243
// Subscribed command callback variables

0 commit comments

Comments
 (0)