From f10f2552314c42040e8f3986e431f318e57ffe6c Mon Sep 17 00:00:00 2001 From: Pradheep Date: Fri, 8 Mar 2024 15:43:42 +0100 Subject: [PATCH] adding the missed string conversion --- src/RelayBoardV3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/RelayBoardV3.cpp b/src/RelayBoardV3.cpp index 87f9ab9..5776651 100644 --- a/src/RelayBoardV3.cpp +++ b/src/RelayBoardV3.cpp @@ -78,17 +78,17 @@ void RelayBoardV3::handle(std::shared_ptr 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; } }