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:
scream3r 2013-04-22 10:49:45 +04:00
parent 5b5a6041c1
commit f756417b29
1 changed files with 1 additions and 1 deletions

View File

@ -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