Finished updating leds function