1
0
forked from fsfw/fsfw

set struct reporting continued

This commit is contained in:
2020-09-26 15:27:06 +02:00
parent 08d0e09493
commit 6fd39dfac3
5 changed files with 36 additions and 4 deletions

View File

@ -23,7 +23,7 @@ ReturnValue_t PowerSwitcher::getStateOfSwitches() {
switch (result) {
case ONE_SWITCH:
return power->getSwitchState(firstSwitch);
case TWO_SWITCHES:
case TWO_SWITCHES: {
ReturnValue_t firstSwitchState = power->getSwitchState(firstSwitch);
ReturnValue_t secondSwitchState = power->getSwitchState(firstSwitch);
if ((firstSwitchState == PowerSwitchIF::SWITCH_ON)
@ -37,6 +37,7 @@ ReturnValue_t PowerSwitcher::getStateOfSwitches() {
else {
return HasReturnvaluesIF::RETURN_FAILED;
}
}
default:
return HasReturnvaluesIF::RETURN_FAILED;
}