Merge pull request #3 from EPLHREU/master
reduce CPU usage from constant polling
This commit is contained in:
commit
0e2ae03390
1 changed files with 1 additions and 0 deletions
|
|
@ -703,6 +703,7 @@ class Stenograph(ThreadedStenotypeBase):
|
||||||
if response.data_length and state.realtime:
|
if response.data_length and state.realtime:
|
||||||
for stroke in response.strokes():
|
for stroke in response.strokes():
|
||||||
self._on_stroke(stroke)
|
self._on_stroke(stroke)
|
||||||
|
sleep(0.10)
|
||||||
|
|
||||||
self._machine.disconnect()
|
self._machine.disconnect()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue