Subversion Repositories Programming Utils

Compare Revisions

Ignore whitespace Rev 55 → Rev 56

/trunk/JavaSerial/src/com/rm5248/serial/BufferedSerialInputStream.java
25,7 → 25,7
 
BufferedSerialInputStream( SerialInputStream s, SerialPort callback ){
stream = s;
buffer = new byte[ 100 ];
buffer = new byte[ 500 ];
bufferBegin = 0;
bufferEnd = 0;
this.callback = callback;
105,7 → 105,12
if( bufferEnd == bufferBegin ){
//the end has wrapped around, increment the beginning
bufferBegin++;
if( bufferBegin >= buffer.length ){
bufferBegin = 0;
}
}
buffer.notify();
}
}