Linux native part, used "ERR_INCORRECT_SERIAL_PORT" instead of "ERR_PORT_NOT_FOUND" if termios structure for serial port can not be get
This commit is contained in:
parent
5b5a6041c1
commit
f756417b29
|
@ -70,7 +70,7 @@ JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_openPort(JNIEnv *env, job
|
|||
fcntl(hComm, F_SETFL, flags);
|
||||
}
|
||||
else {
|
||||
hComm = jssc_SerialNativeInterface_ERR_PORT_NOT_FOUND;//-2;
|
||||
hComm = jssc_SerialNativeInterface_ERR_INCORRECT_SERIAL_PORT;//-4;
|
||||
}
|
||||
delete settings;
|
||||
//<- since 2.2.0
|
||||
|
|
Loading…
Reference in New Issue