Adjust to updated TSwitch library