From dcacabf1ece32f59c09ad8597d6e756bd7d83db3 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 4 Feb 2010 00:30:26 +0000 Subject: [PATCH] bugfix: byte were written from both queue and in response to uart state rx flag clearing, which caused byte to be corrupted --- .../src/se/sics/cooja/mspmote/interfaces/MspSerial.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/MspSerial.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/MspSerial.java index 9cc2e0a67..dc4c45600 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/MspSerial.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/interfaces/MspSerial.java @@ -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();*/ } } });