#include "CamSwitcher.h" CamSwitcher::CamSwitcher(object_id_t objectId, PowerSwitchIF &pwrSwitcher, power::Switch_t pwrSwitch) : PowerSwitcherComponent(objectId, &pwrSwitcher, pwrSwitch) {} void CamSwitcher::performFaultyOperation() { if (not switcher.active() and switcher.getState() != PowerSwitcher::SWITCH_IS_OFF) { switcher.turnOff(); } }