From a1b75382958f6f44477daa280da46045640a616b Mon Sep 17 00:00:00 2001 From: linuswck Date: Tue, 22 Oct 2024 11:59:11 +0800 Subject: [PATCH] driver: Fix disconnection bug at high cmd rate - Disconnection issue can be triggered by setting high polling rate (500Hz) and then interactive with gui elements --- pykirdy/driver/kirdy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykirdy/driver/kirdy.py b/pykirdy/driver/kirdy.py index cf2d59e..a577abc 100644 --- a/pykirdy/driver/kirdy.py +++ b/pykirdy/driver/kirdy.py @@ -879,7 +879,7 @@ class Kirdy: else: self._report_sig.emit(response) else: - if self._msg_queue_get_report: + if self._msg_queue_get_report and response["msg_type"] == 'Report': self._msg_queue_get_report = False self._int_msg_queue.put_nowait_overwrite(response) except asyncio.exceptions.CancelledError: