0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00

Merge pull request #401 from willwill2will54/patch-1

Fixes error with slow mode on low FPS
This commit is contained in:
boltgolt 2020-08-01 12:37:36 +02:00 committed by GitHub
commit 35da11f970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,7 +183,7 @@ try:
# Delay the frame if slowmode is on
if slow_mode:
time.sleep(.5 - frame_time)
time.sleep(max([.5 - frame_time, 0.0]))
if exposure != -1:
# For a strange reason on some cameras (e.g. Lenoxo X1E)