summaryrefslogtreecommitdiff
path: root/src/manager/client/client-control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager/client/client-control.cpp')
-rw-r--r--src/manager/client/client-control.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/manager/client/client-control.cpp b/src/manager/client/client-control.cpp
index 4f8ac558..698c7a0b 100644
--- a/src/manager/client/client-control.cpp
+++ b/src/manager/client/client-control.cpp
@@ -190,15 +190,10 @@ public:
});
}
- virtual int setCCMode(CCModeState mode) {
+ virtual int updateCCMode() {
return try_catch([&] {
- if(((mode != CCModeState::CC_MODE_OFF)) && (mode != CCModeState::CC_MODE_ON)) {
- return CKM_API_ERROR_INPUT_PARAM;
- }
-
MessageBuffer recv;
- auto send = MessageBuffer::Serialize(static_cast<int>(ControlCommand::SET_CC_MODE),
- static_cast<int>(mode));
+ auto send = MessageBuffer::Serialize(static_cast<int>(ControlCommand::UPDATE_CC_MODE));
int retCode = sendToServer(
SERVICE_SOCKET_CKM_CONTROL,
send.Pop(),