Skip to content

Commit 657e501

Browse files
committed
Ensure config errors don't block port opening if user explicitly calls disablePortConfiguration()
1 parent 701ef99 commit 657e501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/c/Posix/SerialPort_Posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ JNIEXPORT jboolean JNICALL Java_com_fazecast_jSerialComm_SerialPort_configPort(J
771771
{
772772
port->errorLineNumber = lastErrorLineNumber = __LINE__ - 2;
773773
port->errorNumber = lastErrorNumber = errno;
774-
return JNI_FALSE;
774+
return disableConfig ? JNI_TRUE : JNI_FALSE;
775775
}
776776
return JNI_TRUE;
777777
}

0 commit comments

Comments
 (0)