Skip to content

Commit 9d5bfe5

Browse files
authored
Fix: Multiprocessing unable to stop
Not sure if this is the best way to fix this, but this fixed Issue #13. I assume this was the intention as the function below (get_data) isn't called anywhere else. Someone more fluent in python should confirm this.
1 parent fa98e98 commit 9d5bfe5

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+
PPK2_MP.get_data(self) # 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)