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 37f5315 commit e71e5a5Copy full SHA for e71e5a5
app/src/processing/app/Serial.java
@@ -185,11 +185,8 @@ public synchronized void serialEvent(SerialPortEvent serialEvent) {
185
case SerialPortEvent.RXFLAG:
186
try {
187
byte[] bytes = port.readBytes();
188
- if (bytes == null) {
189
- return;
190
- }
191
String bytesAsString = new String(bytes);
192
- if (monitor) {
+ if(monitor) {
193
System.out.print(bytesAsString);
194
}
195
if (this.consumer != null) {
@@ -202,6 +199,7 @@ public synchronized void serialEvent(SerialPortEvent serialEvent) {
202
199
203
200
204
201
+
205
/**
206
* This will handle both ints, bytes and chars transparently.
207
*/
0 commit comments