PISerial::setBreak linux fix

This commit is contained in:
2021-09-17 21:27:24 +03:00
parent 950f6830da
commit 5e33587703

View File

@@ -311,7 +311,7 @@ bool PISerial::setBreak(bool enabled) {
}
}
#else
if (ioctl(descriptor, enabled ? TIOCSBRK : TIOCCBRK) < 0) {
if (ioctl(fd, enabled ? TIOCSBRK : TIOCCBRK) < 0) {
piCoutObj << "setBreak error: " << errorString();
return false;
} else {