Skip to content

Commit

Permalink
adding the missed string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
padhupradheep committed Mar 8, 2024
1 parent 323bb3e commit f10f255
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RelayBoardV3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ void RelayBoardV3::handle(std::shared_ptr<const vnx::LogMsg> value){

switch(value->level){
case ERROR:
RCLCPP_ERROR(logger, message);
RCLCPP_ERROR(logger, message.c_str());
break;
case WARN:
RCLCPP_WARN(logger, message);
RCLCPP_WARN(logger, message.c_str());
break;
case DEBUG:
RCLCPP_DEBUG(logger, message);
RCLCPP_DEBUG(logger, message.c_str());
break;
case INFO:
default:
RCLCPP_INFO(logger, message);
RCLCPP_INFO(logger, message.c_str());
break;
}
}
Expand Down

0 comments on commit f10f255

Please sign in to comment.