improvements

This commit is contained in:
Paulchen Panther
2018-12-20 14:41:21 +01:00
committed by GitHub
parent 58f184b1a1
commit cf016efbce

View File

@@ -6,8 +6,10 @@ framesPerSecond = float(hyperion.args.get('fps', 25))
reverse = bool(hyperion.args.get('reverse', False))
sleepTime = 1./framesPerSecond
imageList = []
if imageFile:
imageList = list(reversed(hyperion.getImage(imageFile))) if reverse else hyperion.getImage(imageFile)
imageList = [reversed(hyperion.getImage(imageFile))] if reverse else hyperion.getImage(imageFile)
# Start the write data loop
while not hyperion.abort() and imageList: