This commit is contained in:
parent
b5363604bc
commit
f2f350116f
@ -547,8 +547,9 @@ bool PayloadPcduHandler::checkCurrent(float val, float upperBound, Event event)
|
|||||||
ReturnValue_t PayloadPcduHandler::isModeCombinationValid(Mode_t mode, Submode_t submode) {
|
ReturnValue_t PayloadPcduHandler::isModeCombinationValid(Mode_t mode, Submode_t submode) {
|
||||||
using namespace plpcdu;
|
using namespace plpcdu;
|
||||||
if (mode == MODE_NORMAL) {
|
if (mode == MODE_NORMAL) {
|
||||||
|
// Also deals with the case where the mode is MODE_ON, submode should be 0 here
|
||||||
if (submode == NormalSubmodes::SOLID_STATE_RELAYS_ADC_ON and
|
if (submode == NormalSubmodes::SOLID_STATE_RELAYS_ADC_ON and
|
||||||
this->submode != NormalSubmodes::ALL_OFF) {
|
(this->mode == MODE_NORMAL and this->submode != NormalSubmodes::ALL_OFF)) {
|
||||||
return TRANS_NOT_ALLOWED;
|
return TRANS_NOT_ALLOWED;
|
||||||
}
|
}
|
||||||
if ((submode == NormalSubmodes::DRO_ON and
|
if ((submode == NormalSubmodes::DRO_ON and
|
||||||
|
2
tmtc
2
tmtc
@ -1 +1 @@
|
|||||||
Subproject commit e37430423e814b9e05f25d63970f2c2b5048cfb1
|
Subproject commit b5a9dac8f6d3733779a67a72b14a20091069a346
|
Loading…
x
Reference in New Issue
Block a user