Skip to content

Commit

Permalink
Add delay to fix hot loop CPU
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Dec 30, 2024
1 parent c146c8f commit 7284f43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MAVProxy/mavproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ def log_writer():
if not mpstate.logqueue_raw.empty():
bytes = mpstate.logqueue_raw.get(block=False)
mpstate.logfile_raw.write(bytearray(bytes))
time.sleep(0.001)

# TODO consider wait() the stop event instead
timeout = time.time() + 10
Expand Down

0 comments on commit 7284f43

Please sign in to comment.