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