forked from M-Labs/kirdy
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
This commit is contained in:
parent
8f5a294a53
commit
a1b7538295
|
@ -879,7 +879,7 @@ class Kirdy:
|
||||||
else:
|
else:
|
||||||
self._report_sig.emit(response)
|
self._report_sig.emit(response)
|
||||||
else:
|
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._msg_queue_get_report = False
|
||||||
self._int_msg_queue.put_nowait_overwrite(response)
|
self._int_msg_queue.put_nowait_overwrite(response)
|
||||||
except asyncio.exceptions.CancelledError:
|
except asyncio.exceptions.CancelledError:
|
||||||
|
|
Loading…
Reference in New Issue