improvements

This commit is contained in:
Paulchen Panther 2018-12-20 14:41:21 +01:00 committed by GitHub
parent 58f184b1a1
commit cf016efbce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,10 @@ framesPerSecond = float(hyperion.args.get('fps', 25))
reverse = bool(hyperion.args.get('reverse', False)) reverse = bool(hyperion.args.get('reverse', False))
sleepTime = 1./framesPerSecond sleepTime = 1./framesPerSecond
imageList = []
if imageFile: 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 # Start the write data loop
while not hyperion.abort() and imageList: while not hyperion.abort() and imageList: