def _check_recycle_time(self, switch, state):
        # checks to see when a switch is ok to be activated again after it's
        # been last activated

        if Timing.tick >= switch.recycle_clear_tick:
            return True

        else:
            if state:
                switch.recycle_jitter_count += 1
            return False
dataset/ETHPy150Open missionpinball/mpf/mpf/system/switch_controller.py/SwitchController._check_recycle_time/original