those are the most important cases
This commit is contained in:
parent
0c394ad34d
commit
3ae7dab8c7
@ -30,6 +30,7 @@ void SusHandler::doStartUp() {
|
|||||||
void SusHandler::doShutDown() {
|
void SusHandler::doShutDown() {
|
||||||
if (internalState != InternalState::SHUTDOWN) {
|
if (internalState != InternalState::SHUTDOWN) {
|
||||||
PoolReadGuard pg(&dataset);
|
PoolReadGuard pg(&dataset);
|
||||||
|
dataset.tempC = thermal::INVALID_TEMPERATURE;
|
||||||
dataset.setValidity(false, true);
|
dataset.setValidity(false, true);
|
||||||
internalState = InternalState::SHUTDOWN;
|
internalState = InternalState::SHUTDOWN;
|
||||||
commandExecuted = false;
|
commandExecuted = false;
|
||||||
|
@ -37,6 +37,8 @@ void Max31865EiveHandler::doShutDown() {
|
|||||||
transitionOk = false;
|
transitionOk = false;
|
||||||
}
|
}
|
||||||
if (state == InternalState::INACTIVE and transitionOk) {
|
if (state == InternalState::INACTIVE and transitionOk) {
|
||||||
|
sensorDataset.temperatureCelcius = thermal::INVALID_TEMPERATURE;
|
||||||
|
sensorDataset.setValidity(false, true);
|
||||||
updatePeriodicReply(false, EiveMax31855::RtdCommands::EXCHANGE_SET_ID);
|
updatePeriodicReply(false, EiveMax31855::RtdCommands::EXCHANGE_SET_ID);
|
||||||
setMode(MODE_OFF);
|
setMode(MODE_OFF);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user