From fb4ea73ec0365cf55ce383e8935d24c35ce464cf Mon Sep 17 00:00:00 2001 From: Sucan126 <632190820@qq.com> Date: Tue, 9 Sep 2025 11:39:34 +0800 Subject: [PATCH] Enhance logging in CustomRobot::processOacCmd method. Added informational log statement to display the current switch state before toggling, improving visibility into command processing. --- 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 3b9f166..4c4133c 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -268,7 +268,7 @@ bool CustomRobot::processOacCmd(const std::string& cmd, const nlohmann::json& me LOG_ERROR("Failed to get current switch state"); return false; } - + LOG_INFO("Current switch state: " + std::string(currentEnable ? "true" : "false")); // switch to opposite state return controller_->SwitchSet(!currentEnable);