mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
fix problem with bufferUntil() not properly handling values over 127 (issue #1079)
This commit is contained in:
@@ -68,7 +68,7 @@ public class Serial implements SerialPortEventListener {
|
||||
//boolean bufferUntil = false;
|
||||
int bufferSize = 1; // how big before reset or event firing
|
||||
boolean bufferUntil;
|
||||
int bufferUntilByte;
|
||||
byte bufferUntilByte;
|
||||
|
||||
|
||||
// defaults
|
||||
@@ -306,7 +306,7 @@ public class Serial implements SerialPortEventListener {
|
||||
*/
|
||||
public void bufferUntil(int what) {
|
||||
bufferUntil = true;
|
||||
bufferUntilByte = what;
|
||||
bufferUntilByte = (byte) what;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user