mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Ensure types in effects to avoid integer calculations were floats were needed
Former-commit-id: 84d8b281a544478bf14e88284cb600fdbb11f65c
This commit is contained in:
@@ -3,8 +3,8 @@ import time
|
||||
import colorsys
|
||||
|
||||
# Get the rotation time
|
||||
speed = hyperion.args.get('speed', 1.0)
|
||||
fadeFactor = hyperion.args.get('fadeFactor', 0.7)
|
||||
speed = float(hyperion.args.get('speed', 1.0))
|
||||
fadeFactor = float(hyperion.args.get('fadeFactor', 0.7))
|
||||
|
||||
# Check parameters
|
||||
speed = max(0.0001, speed)
|
||||
|
Reference in New Issue
Block a user