bugfix: byte were written from both queue and in response to uart state rx flag clearing, which caused byte to be corrupted

This commit is contained in:
fros4943 2010-02-04 00:30:26 +00:00
parent c3a2c11bbc
commit dcacabf1ec

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: MspSerial.java,v 1.3 2010/02/03 20:00:29 fros4943 Exp $
* $Id: MspSerial.java,v 1.4 2010/02/04 00:30:26 fros4943 Exp $
*/
package se.sics.cooja.mspmote.interfaces;
@ -78,7 +78,7 @@ public class MspSerial extends SerialUI implements SerialPort {
}
public void stateChanged(int state) {
if (state == USARTListener.RXFLAG_CLEARED) {
tryWriteNextByte();
/*tryWriteNextByte();*/
}
}
});