piserial should be fixed

This commit is contained in:
2022-10-24 10:55:25 +03:00
parent ea0df21726
commit 609ff8e9c8
4 changed files with 4 additions and 18 deletions

View File

@@ -680,7 +680,7 @@ bool PISerial::openDevice() {
bool PISerial::closeDevice() {
if (isThreadedRead()) {
if (isThreadedRead() && !isThreadedReadStopping()) {
stopThreadedRead();
}
if (fd != -1) {