Skip to content

Commit

Permalink
embObjMultipleFTsensors: Set the status to MAS_OK even if the timeout…
Browse files Browse the repository at this point in the history
… check is disabled (robotology#892)
  • Loading branch information
traversaro authored and MSECode committed Jul 5, 2023
1 parent 727b848 commit 42a2d0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ bool embObjMultipleFTsensors::update(eOprotID32_t id32, double timestamp, void *
ftSensorsData_[eoprotIndex].data_[index] = data->values[index];
}
ftSensorsData_[eoprotIndex].timeStamp_ = data->age;
masStatus_[eoprotIndex] = MAS_OK;

temperaturesensordata_[eoprotIndex].data_ = data->temperature;
temperaturesensordata_[eoprotIndex].timeStamp_ = calculateBoardTime(data->age);
Expand Down Expand Up @@ -399,7 +400,6 @@ bool embObjMultipleFTsensors::checkUpdateTimeout(eOprotID32_t id32, eOabstime_t
masStatus_[eoprot_ID2index(id32)] = MAS_TIMEOUT;
return false;
}
masStatus_[eoprot_ID2index(id32)] = MAS_OK;
timeoutUpdate_[id32] = current;
return true;
}
Expand Down

0 comments on commit 42a2d0d

Please sign in to comment.