mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
[unix] Correct error messages on .set unix bindings
This commit is contained in:
parent
61d44cd39d
commit
adccc6dfde
1 changed files with 2 additions and 2 deletions
|
|
@ -685,12 +685,12 @@ void EIO_Set(uv_work_t* req) {
|
|||
}
|
||||
|
||||
if (-1 == result) {
|
||||
snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot drain", strerror(errno));
|
||||
snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot set", strerror(errno));
|
||||
return;
|
||||
}
|
||||
|
||||
if (-1 == ioctl(data->fd, TIOCMSET, &bits)) {
|
||||
snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot drain", strerror(errno));
|
||||
snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot set", strerror(errno));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue