embObjMultipleFTsensors: Set the status to MAS_OK even if the timeout check is disabled #892
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#871 introduce one critical bug in the
embObjMultipleFTsensors
YARP device: as for some reason the default value of checkUpdateTimeoutFlag_ is false, no check if the sensor is in timeout is done. As the assigned of the status toMAS_OK
only happens if the check for timeout is done, what happened since #871 is that the sensor always returned the initial statusMAS_WAITING_FOR_FIRST_READ
, even if a first read already arrived.This resulted in yarprobotinterface logs flooded by messages like:
and no FT measure was published on the YARP port.
This PR fixes the bug by setting the
MAS_OK
status whenever a new data is read, so that the status is correctly set even if no timeout is ever checked.There could be more have been left out as it is more important to provide a bugfix as soon as possible:
checkUpdateTimeoutFlag_
totrue