PL PCDU Refactoring v1 #189

Merged
meierj merged 14 commits from mueller/plpcdu-refactoring into develop 2022-03-31 15:31:47 +02:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit f2f350116f - Show all commits

View File

@ -547,8 +547,9 @@ bool PayloadPcduHandler::checkCurrent(float val, float upperBound, Event event)
ReturnValue_t PayloadPcduHandler::isModeCombinationValid(Mode_t mode, Submode_t submode) {
using namespace plpcdu;
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
this->submode != NormalSubmodes::ALL_OFF) {
(this->mode == MODE_NORMAL and this->submode != NormalSubmodes::ALL_OFF)) {
return TRANS_NOT_ALLOWED;
}
if ((submode == NormalSubmodes::DRO_ON and

2
tmtc

@ -1 +1 @@
Subproject commit e37430423e814b9e05f25d63970f2c2b5048cfb1
Subproject commit b5a9dac8f6d3733779a67a72b14a20091069a346