mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
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))
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user