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 ae2291fa3f1..b1b9fc398e2 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, "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; }