Skip to content

Commit 3b4d9fd

Browse files
authored
Merge pull request #16 from Solidedge/patch-1
Fix: Multiprocessing unable to stop
2 parents fa98e98 + 253c5ee commit 3b4d9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ppk2_api/ppk2_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def start_measuring(self):
472472

473473
def stop_measuring(self):
474474
PPK2_API.stop_measuring(self)
475-
PPK2_API.get_data(self) # flush the serial buffer (to prevent unicode error on next command)
475+
self.get_data() # flush the serial buffer (to prevent unicode error on next command)
476476
self._quit_evt.set()
477477
if self._fetcher is not None:
478478
self._fetcher.join() # join() will block if the queue isn't empty

0 commit comments

Comments
 (0)