This commit is contained in:
@ -19,7 +19,10 @@ DualLaneAssemblyBase::DualLaneAssemblyBase(object_id_t objectId, PowerSwitchIF*
|
||||
void DualLaneAssemblyBase::performChildOperation() {
|
||||
using namespace duallane;
|
||||
if (pwrStateMachine.active()) {
|
||||
pwrStateMachineWrapper();
|
||||
ReturnValue_t result = pwrStateMachineWrapper();
|
||||
if (result != returnvalue::OK) {
|
||||
handleModeTransitionFailed(result);
|
||||
}
|
||||
}
|
||||
// Only perform the regular child operation if the power state machine is not active.
|
||||
// It does not make any sense to command device modes while the power switcher is busy
|
||||
@ -112,6 +115,7 @@ void DualLaneAssemblyBase::handleModeReached() {
|
||||
pwrStateMachine.start(targetMode, targetSubmode);
|
||||
// Now we can switch off the power. After that, the AssemblyBase::handleModeReached function
|
||||
// will be called
|
||||
// Ignore failures for now.
|
||||
pwrStateMachineWrapper();
|
||||
} else {
|
||||
finishModeOp();
|
||||
|
Reference in New Issue
Block a user