small tweaks

This commit is contained in:
Robin Müller 2022-03-28 12:59:03 +02:00
parent b32d1da421
commit 23af170229
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

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; }