5V stack commanding for device handlers #335
@ -41,7 +41,14 @@ void RadiationSensorHandler::doStartUp() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RadiationSensorHandler::doShutDown() { setMode(_MODE_POWER_DOWN); }
|
void RadiationSensorHandler::doShutDown() {
|
||||||
|
ReturnValue_t retval = stackHandler.deviceToOff(StackCommander::RAD_SENSOR);
|
||||||
|
if (retval == BUSY) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
internalState = InternalState::OFF;
|
||||||
|
setMode(_MODE_POWER_DOWN);
|
||||||
|
}
|
||||||
|
|
||||||
ReturnValue_t RadiationSensorHandler::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
ReturnValue_t RadiationSensorHandler::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
||||||
switch (communicationStep) {
|
switch (communicationStep) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user