diff --git a/src/serialport_unix.cpp b/src/serialport_unix.cpp index 261342a0..47299abb 100644 --- a/src/serialport_unix.cpp +++ b/src/serialport_unix.cpp @@ -396,7 +396,7 @@ void SetBaton::Execute() { result = ioctl(fd, TIOCCBRK, NULL); } - if (-1 == result) { + if (-1 == result && errno != EOPNOTSUPP) { snprintf(errorString, sizeof(errorString), "Error: %s, cannot set", strerror(errno)); this->SetError(errorString); return;