PL PCDU tweaks #766

Merged
muellerr merged 12 commits from pl-pcdu-tweaks into main 2023-08-03 13:07:11 +02:00
Showing only changes of commit 1f02c0ef57 - Show all commits

View File

@ -69,6 +69,10 @@ void PayloadPcduHandler::doShutDown() {
{
PoolReadGuard pg(&adcSet);
adcSet.setReportingEnabled(false);
adcSet.tempC = 0;
muellerr marked this conversation as resolved Outdated

use the invalid temp constexpr instead?

use the invalid temp constexpr instead?
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