fix problem with bufferUntil() not properly handling values over 127 (issue #1079)

This commit is contained in:
benfry
2012-08-04 19:57:29 +00:00
parent c5db8dbb16
commit 02b4e738f5
2 changed files with 7 additions and 3 deletions
@@ -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;
}
+5 -1
View File
@@ -11,8 +11,12 @@ o instead of "show sketch folder" method, use:
The com.apple.eio.FileManager now has two new desktop interaction methods, revealInFinder(File) and moveToTrash(File). You can use revealInFinder() to open a Finder window in the parent directory of of a file and select it. You can use moveToTrash() to move a file to the most appropriate Trash directory for the volume that contains that file.
X added 64-bit RXTX for Mac OS X
X http://blog.iharder.net/2009/08/18/rxtx-java-6-and-librxtxserial-jnilib-on-intel-mac-os-x/
X bufferUntil() with values above 127 do not work properly
X http://code.google.com/p/processing/issues/detail?id=1079
X add warning message about using serial on OS X
_ check on other serial issues, this may fix them
X check on other serial issues, this may fix them
X http://code.google.com/p/processing/issues/detail?id=944
X http://code.google.com/p/processing/issues/detail?id=937
cleaning
o switching into present mode in info.plist