From b35395e543d115aea7810ae3c28a650559e6b930 Mon Sep 17 00:00:00 2001 From: Sucan126 <632190820@qq.com> Date: Tue, 9 Sep 2025 11:34:35 +0800 Subject: [PATCH] Refactor command processing in CustomRobot class. Changed method name from processCommand to processCmd for improved consistency and clarity in MQTT message handling. --- src/custom_robot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom_robot.cpp b/src/custom_robot.cpp index 0cbff79..3b9f166 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -207,7 +207,7 @@ void CustomRobot::onMqttMessage(const std::string& topic, const std::string& pay std::string controlTopic = config_.topic_prefix + "/" + config_.topic_cmd; if (topic == controlTopic) { - processCommand(message); + processCmd(message); } } catch (const std::exception& e) { LOG_ERROR("Error processing MQTT message: " + std::string(e.what()));