|
|
@ -116,7 +116,9 @@ public class DiConSerialPort implements DiDeviceConnection { |
|
|
|
} else if ( 0x02 == messageType ) { // error message |
|
|
|
throw new RuntimeException("error message received: " + DiByteBuffer.toHex(this.receivedData)); |
|
|
|
} else { |
|
|
|
throw new RuntimeException("unknown message type : " + messageType + " <= " + DiByteBuffer.toHex(this.receivedData)); |
|
|
|
var hex = DiByteBuffer.toHex(this.receivedData); |
|
|
|
this.receivedData = null; |
|
|
|
throw new RuntimeException("unknown message type : " + messageType + " <= " + hex); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|