in status_led_pkg/status_led_pkg/status_led_node.py [0:0]
def stop_effect(self, led_index):
"""Helper function to stop the current effect on the LED light for led_index
by setting the stop event.
Args:
led_index (int): LED index to identify the status LED.
"""
if self.threads[led_index] is not None:
self.stop[led_index].set()
self.threads[led_index].join()
self.threads[led_index] = None