set set to 0 for OFF cmd
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-08-03 10:05:10 +02:00
parent 093f7f3a31
commit 1f02c0ef57
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -69,6 +69,10 @@ void PayloadPcduHandler::doShutDown() {
{
PoolReadGuard pg(&adcSet);
adcSet.setReportingEnabled(false);
adcSet.tempC = 0;
std::memset(adcSet.channels.value, 0, sizeof(adcSet.channels.value));
std::memset(adcSet.processed.value, 0, sizeof(adcSet.processed.value));
adcSet.setValidity(false, true);
}
// No need to set mode _MODE_POWER_DOWN, power switching was already handled