We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f59c3 commit edd78e2Copy full SHA for edd78e2
src/main/java/jssc/SerialPort.java
@@ -428,10 +428,10 @@ public boolean writeBytes1(byte[] buffer) throws SerialPortException {
428
*/
429
public int writeBytes(byte[] buffer) throws SerialPortException {
430
checkPortOpened("writeBytes()");
431
- try{
+ try {
432
return serialInterface.writeBytes(portHandle, buffer);
433
- }catch( IOException ex ){
434
- throw wrapNativeException(ex, this, "writeBytes");
+ } catch(IOException ex) {
+ throw SerialPortException.wrapNativeException(ex, this, "writeBytes");
435
}
436
437
0 commit comments