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 b8da590 commit de795dbCopy full SHA for de795db
io.sloeber.core/src/io/sloeber/core/api/Serial.java
@@ -256,7 +256,7 @@ public void reset() {
256
@Override
257
public synchronized void serialEvent(SerialPortEvent serialEvent) {
258
switch (serialEvent.getEventType()) {
259
- case SerialPortEvent.RXCHAR:
+ case SerialPort.MASK_RXCHAR:
260
int bytesCount = serialEvent.getEventValue();
261
262
if (IsConnected() && bytesCount > 0) {
@@ -267,7 +267,7 @@ public synchronized void serialEvent(SerialPortEvent serialEvent) {
267
}
268
269
break;
270
- case SerialPortEvent.BREAK:
+ case SerialPort.MASK_BREAK:
271
errorMessage("Break detected", new Exception()); //$NON-NLS-1$
272
273
default:
0 commit comments