We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c39a6a2 commit 79eb32fCopy full SHA for 79eb32f
app/src/processing/app/Serial.java
@@ -175,7 +175,7 @@ public void addListener(MessageConsumer consumer) {
175
public synchronized void serialEvent(SerialPortEvent serialEvent) {
176
if (serialEvent.isRXCHAR()) {
177
try {
178
- byte[] buf = port.readBytes();
+ byte[] buf = port.readBytes(serialEvent.getEventValue());
179
if (buf.length > 0) {
180
if (bufferLast == buffer.length) {
181
byte temp[] = new byte[bufferLast << 1];
build/shared/revisions.txt
@@ -1,4 +1,9 @@
1
2
+ARDUINO 1.5.6-r2 BETA 2014.02.21
3
+
4
+[ide]
5
+* JSSC: Fixed NPE when RXCHAR event with no bytes (José Pereda)
6
7
ARDUINO 1.5.6 BETA 2014.02.20
8
9
[ide]
0 commit comments