Refactor Power Module #49

Merged
meierj merged 6 commits from mueller/refactor-power-switch-if-etc-eive into eive/develop 2022-03-31 09:01:25 +02:00
1 changed files with 7 additions and 2 deletions
Showing only changes of commit 23af170229 - Show all commits

View File

@ -33,6 +33,11 @@ ReturnValue_t DummyPowerSwitcher::getSwitchState(power::Switch_t switchNr) const
return HasReturnvaluesIF::RETURN_FAILED;
}
ReturnValue_t DummyPowerSwitcher::getFuseState(uint8_t fuseNr) const { return RETURN_OK; }
ReturnValue_t DummyPowerSwitcher::getFuseState(uint8_t fuseNr) const {
if (fuseNr < fuseList.capacity()) {
return fuseList[fuseNr];
}
return HasReturnvaluesIF::RETURN_FAILED;
}
uint32_t DummyPowerSwitcher::getSwitchDelayMs(void) const { return 5000; }
uint32_t DummyPowerSwitcher::getSwitchDelayMs(void) const { return switchDelayMs; }