From 3d9a31f4af05adb71a7be368307554a4e8b86450 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Fri, 10 Mar 2023 16:06:35 -0600 Subject: [PATCH] Fix backlog --- tools/RawCapture.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/RawCapture.md b/tools/RawCapture.md index b18004b..453fc80 100644 --- a/tools/RawCapture.md +++ b/tools/RawCapture.md @@ -70,6 +70,7 @@ device.grab() write_queue = queue.Queue() def write_loop(): backlog = [] + data = None while True: try: while backlog: @@ -82,7 +83,8 @@ def write_loop(): except Exception as e: print("Error writing to fifo: " + str(e)) traceback.print_exc() - backlog + if data != None: + backlog.append(data) write_thread = threading.Thread(target=write_loop, daemon=True) write_thread.start()