histogram tm disabled validity buffer for deserialization

This commit is contained in:
Jakob Meier 2021-12-18 11:33:29 +01:00
parent 3163995d06
commit 654e75fec8
2 changed files with 4 additions and 2 deletions

View File

@ -660,7 +660,7 @@ public:
lp_var_t<uint32_t> binA6 = lp_var_t<uint32_t>(sid.objectId, PoolIds::HISTOGRAM_BINA6, this);
lp_var_t<uint32_t> binA7 = lp_var_t<uint32_t>(sid.objectId, PoolIds::HISTOGRAM_BINA7, this);
lp_var_t<uint32_t> binA8 = lp_var_t<uint32_t>(sid.objectId, PoolIds::HISTOGRAM_BINA8, this);
lp_var_t<uint32_t> binb0 = lp_var_t<uint32_t>(sid.objectId, PoolIds::HISTOGRAM_BINB0, this);
lp_var_t<uint32_t> binB0 = lp_var_t<uint32_t>(sid.objectId, PoolIds::HISTOGRAM_BINB0, this);
lp_var_t<uint32_t> binB1 = lp_var_t<uint32_t>(sid.objectId, PoolIds::HISTOGRAM_BINB1, this);
lp_var_t<uint32_t> binB2 = lp_var_t<uint32_t>(sid.objectId, PoolIds::HISTOGRAM_BINB2, this);
lp_var_t<uint32_t> binB3 = lp_var_t<uint32_t>(sid.objectId, PoolIds::HISTOGRAM_BINB3, this);
@ -702,7 +702,7 @@ public:
sif::info << "HistogramSet::printSet: BinA6: " << this->binA6 << std::endl;
sif::info << "HistogramSet::printSet: BinA7: " << this->binA7 << std::endl;
sif::info << "HistogramSet::printSet: BinA8: " << this->binA8 << std::endl;
sif::info << "HistogramSet::printSet: BinB0: " << this->binA0 << std::endl;
sif::info << "HistogramSet::printSet: BinB0: " << this->binB0 << std::endl;
sif::info << "HistogramSet::printSet: BinB1: " << this->binB1 << std::endl;
sif::info << "HistogramSet::printSet: BinB2: " << this->binB2 << std::endl;
sif::info << "HistogramSet::printSet: BinB3: " << this->binB3 << std::endl;

View File

@ -1419,7 +1419,9 @@ ReturnValue_t StarTrackerHandler::handleHistogramTm() {
}
const uint8_t* reply = dataLinkLayer.getReply() + TM_DATA_FIELD_OFFSET;
size_t size = StarTracker::HistogramSet::SIZE;
histogramSet.setValidityBufferGeneration(false);
result = histogramSet.deSerialize(&reply, &size, SerializeIF::Endianness::LITTLE);
histogramSet.setValidityBufferGeneration(true);
if (result != RETURN_OK) {
sif::warning << "StarTrackerHandler::handleHistogramTm: Deserialization failed"
<< std::endl;