1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 18:10:47 +02:00

Fix type warning in log output

This commit is contained in:
Henning Kayser
2017-07-21 18:02:48 +02:00
parent d3637e9633
commit 75c3733eb7

View File

@@ -75,7 +75,7 @@ public:
if (!packet->parseWith(sbp)) if (!packet->parseWith(sbp))
{ {
LOG_ERROR("Sub-package parsing of type %d failed!", type); LOG_ERROR("Sub-package parsing of type %d failed!", static_cast<int>(type));
return false; return false;
} }
@@ -83,7 +83,7 @@ public:
if (!sbp.empty()) if (!sbp.empty())
{ {
LOG_ERROR("Sub-package of type %d was not parsed completely!", type); LOG_ERROR("Sub-package of type %d was not parsed completely!", static_cast<int>(type));
sbp.debug(); sbp.debug();
return false; return false;
} }
@@ -95,4 +95,4 @@ public:
typedef URStateParser<RobotModeData_V1_X, MasterBoardData_V1_X> URStateParser_V1_X; typedef URStateParser<RobotModeData_V1_X, MasterBoardData_V1_X> URStateParser_V1_X;
typedef URStateParser<RobotModeData_V3_0__1, MasterBoardData_V3_0__1> URStateParser_V3_0__1; typedef URStateParser<RobotModeData_V3_0__1, MasterBoardData_V3_0__1> URStateParser_V3_0__1;
typedef URStateParser<RobotModeData_V3_2, MasterBoardData_V3_2> URStateParser_V3_2; typedef URStateParser<RobotModeData_V3_2, MasterBoardData_V3_2> URStateParser_V3_2;