diff --git a/src/custom_robot.cpp b/src/custom_robot.cpp index 1635ffe..8503df3 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -154,8 +154,7 @@ bool CustomRobot::SwitchService(const std::string& serviceName, bool enable) { } try { - int32_t status; - int32_t ret = rsc_->ServiceSwitch(serviceName, enable ? 1 : 0, status); + int32_t ret = rsc_->ServiceSwitch(serviceName, enable ? 1 : 0); if (ret != 0) { LOG_ERROR("Failed to switch service " + serviceName + ", error code: " + std::to_string(ret)); return false;