(SerialPortEvent serialEvent)
| 176 | } |
| 177 | |
| 178 | @Override |
| 179 | public synchronized void serialEvent(SerialPortEvent serialEvent) { |
| 180 | if (serialEvent.isRXCHAR()) { |
| 181 | try { |
| 182 | byte[] buf = port.readBytes(serialEvent.getEventValue()); |
| 183 | processSerialEvent(buf); |
| 184 | } catch (SerialPortException e) { |
| 185 | errorMessage("serialEvent", e); |
| 186 | } |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | public void processSerialEvent(byte[] buf) { |
| 191 | int next = 0; |
nothing calls this directly
no test coverage detected