File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,12 @@ void Ros_ReportVersionInfoToController()
40
40
MP_APPINFO_SEND_DATA appInfoSendData ;
41
41
MP_STD_RSP_DATA stdResponseData ;
42
42
43
- sprintf (appInfoSendData .AppName , APPLICATION_NAME );
44
-
45
- sprintf (appInfoSendData .Version , "%s" , APPLICATION_VERSION );
46
- sprintf (appInfoSendData .Comment , "micro-ROS based ROS 2 interface" );
47
-
43
+ snprintf (appInfoSendData .AppName , MP_MAX_APP_NAME ,
44
+ "%s (%s)" , APPLICATION_NAME , MOTOPLUS_LIBMICROROS_ROS2_CODENAME );
45
+ snprintf (appInfoSendData .Version , MP_MAX_APP_VERSION ,
46
+ "%s" , APPLICATION_VERSION );
47
+ snprintf (appInfoSendData .Comment , MP_MAX_APP_COMMENT ,
48
+ "%s" , "micro-ROS based ROS 2 interface" );
48
49
mpApplicationInfoNotify (& appInfoSendData , & stdResponseData ); //don't care about return value
49
50
}
50
51
You can’t perform that action at this time.
0 commit comments