From e0a1bf21447d71af75898115e3ea814e964dc12f Mon Sep 17 00:00:00 2001 From: Simone Girardi Date: Thu, 31 Aug 2023 12:51:27 +0200 Subject: [PATCH] bugfix in getMotorTorqueParams --- src/devices/RemoteControlBoard/RemoteControlBoard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/RemoteControlBoard/RemoteControlBoard.cpp b/src/devices/RemoteControlBoard/RemoteControlBoard.cpp index 33e054d7c5..0668685050 100644 --- a/src/devices/RemoteControlBoard/RemoteControlBoard.cpp +++ b/src/devices/RemoteControlBoard/RemoteControlBoard.cpp @@ -2234,9 +2234,9 @@ bool RemoteControlBoard::getMotorTorqueParams(int j, MotorTorqueParameters *para return false; } Bottle& l = *lp; - if (l.size() != 8) + if (l.size() != 9) { - yCError(REMOTECONTROLBOARD, "getMotorTorqueParams return value not understood, size != 8"); + yCError(REMOTECONTROLBOARD, "getMotorTorqueParams return value not understood, size != 9"); return false; } params->bemf = l.get(0).asFloat64();