get transiition delay abstract
This commit is contained in:
parent
d53645e6ea
commit
9937842ded
@ -926,11 +926,6 @@ void DeviceHandlerBase::doTransition(Mode_t modeFrom, Submode_t subModeFrom) {
|
|||||||
setMode(getBaseMode(mode));
|
setMode(getBaseMode(mode));
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t DeviceHandlerBase::getTransitionDelayMs(Mode_t modeFrom,
|
|
||||||
Mode_t modeTo) {
|
|
||||||
return 5000;
|
|
||||||
}
|
|
||||||
|
|
||||||
ReturnValue_t DeviceHandlerBase::getStateOfSwitches(void) {
|
ReturnValue_t DeviceHandlerBase::getStateOfSwitches(void) {
|
||||||
if(powerSwitcher == nullptr) {
|
if(powerSwitcher == nullptr) {
|
||||||
return NO_SWITCH;
|
return NO_SWITCH;
|
||||||
|
@ -490,7 +490,7 @@ protected:
|
|||||||
* @param modeTo
|
* @param modeTo
|
||||||
* @return time in ms
|
* @return time in ms
|
||||||
*/
|
*/
|
||||||
virtual uint32_t getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo);
|
virtual uint32_t getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the switches connected to the device.
|
* Return the switches connected to the device.
|
||||||
|
Loading…
Reference in New Issue
Block a user