From b7d5d677f7ecf9363b2f864a7e4e7ec95937caec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20=C5=81ukawski?= Date: Mon, 23 Jan 2023 18:28:52 +0100 Subject: [PATCH] Fix handling of `IRemoteVariables` messages via RPC --- doc/release/yarp_3_7/cbw_remote_vars.md | 8 ++++++++ src/devices/ControlBoardWrapper/RPCMessagesParser.cpp | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 doc/release/yarp_3_7/cbw_remote_vars.md diff --git a/doc/release/yarp_3_7/cbw_remote_vars.md b/doc/release/yarp_3_7/cbw_remote_vars.md new file mode 100644 index 00000000000..8a976c375d1 --- /dev/null +++ b/doc/release/yarp_3_7/cbw_remote_vars.md @@ -0,0 +1,8 @@ +cbw_remote_vars {#yarp_3_7} +------------------- + +### Devices + +#### `controlBoard_nws_yarp` + +* Fix handling of `IRemoteVariables` messages via RPC. diff --git a/src/devices/ControlBoardWrapper/RPCMessagesParser.cpp b/src/devices/ControlBoardWrapper/RPCMessagesParser.cpp index da96ca0b498..b049851526e 100644 --- a/src/devices/ControlBoardWrapper/RPCMessagesParser.cpp +++ b/src/devices/ControlBoardWrapper/RPCMessagesParser.cpp @@ -1232,10 +1232,10 @@ void RPCMessagesParser::handlePWMMsg(const yarp::os::Bottle& cmd, yarp::os::Bott void RPCMessagesParser::handleRemoteVariablesMsg(const yarp::os::Bottle& cmd, yarp::os::Bottle& response, bool* rec, bool* ok) { - yCTrace(CONTROLBOARD, "Handling IRemoteCalibrator message"); + yCTrace(CONTROLBOARD, "Handling IRemoteVariables message"); - if (!rpc_IRemoteCalibrator) { - yCError(CONTROLBOARD, "controlBoardWrapper: I do not have a valid IRemoteCalibrator interface"); + if (!rpc_IVar) { + yCError(CONTROLBOARD, "controlBoardWrapper: I do not have a valid IRemoteVariables interface"); *ok = false; return; }