From 2782bb920d8340e68555940c4dc70703b1659441 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 15 Jan 2024 10:39:21 +0100 Subject: [PATCH] turn lights off --- cdoseaplay/lights.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cdoseaplay/lights.py b/cdoseaplay/lights.py index 4665896..4c7b09f 100755 --- a/cdoseaplay/lights.py +++ b/cdoseaplay/lights.py @@ -96,8 +96,9 @@ def fade_to(target, duration): CURRENT_STATE = sender[1].dmx_data[:16] time.sleep(step) steps -= 1 - CURRENT_STATE = sender[1].dmx_data = [0] * 16 - time.sleep(1) + sender[1].dmx_data = [0] * 16 + CURRENT_STATE = [0] * 16 + time.sleep(0.1) sender.stop()