MCPcopy Index your code
hub / github.com/arduino/Arduino / serialEvent

Method serialEvent

arduino-core/src/processing/app/Serial.java:178–188  ·  view source on GitHub ↗
(SerialPortEvent serialEvent)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

processSerialEventMethod · 0.95
errorMessageMethod · 0.95

Tested by

no test coverage detected