This commit is contained in:
acki
2025-05-29 07:05:36 -04:00
parent 8c422a8384
commit 3dcce1c6a4

View File

@@ -272,7 +272,7 @@ namespace Modelec
RCLCPP_INFO(this->get_logger(), "Received message: '%s'", msg->data.c_str());
std::vector<std::string> tokens = split(trim(msg->data), ';');
if (tokens.size() <= 2)
if (tokens.size() < 2)
{
RCLCPP_ERROR(this->get_logger(), "Invalid message format");
return;