diff --git a/src/libraries/icubmod/embObjMais/embObjMais.cpp b/src/libraries/icubmod/embObjMais/embObjMais.cpp index 87ef54d7da..0220d7c8d9 100755 --- a/src/libraries/icubmod/embObjMais/embObjMais.cpp +++ b/src/libraries/icubmod/embObjMais/embObjMais.cpp @@ -554,6 +554,7 @@ bool embObjMais::getEncoderArrayMeasure(size_t sens_index, yarp::sig::Vector& ou } size_t embObjMais::getEncoderArraySize(size_t sens_index) const { + if (sens_index >= 1) return 0; return analogdata.size(); }