mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
fix(unix): allow EOPNOTSUPP for TIOCSBRK/TIOCCBRK
This commit is contained in:
parent
a002070686
commit
bada5a9e5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue