improvements
This commit is contained in:
parent
58f184b1a1
commit
cf016efbce
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue