Clip sleep duration to 0
This commit is contained in:
parent
424fdd018c
commit
2fbc14608c
1 changed files with 1 additions and 1 deletions
|
|
@ -198,4 +198,4 @@ while True:
|
|||
previous_error = error
|
||||
previous_time = loop_start_time
|
||||
|
||||
time.sleep(SAMPLE_INTERVAL - (time.monotonic() - loop_start_time))
|
||||
time.sleep(max([0.0, SAMPLE_INTERVAL - (time.monotonic() - loop_start_time)]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue