diff --git a/CHANGE_LOG.txt b/CHANGE_LOG.txt index 38e3307..b405073 100644 --- a/CHANGE_LOG.txt +++ b/CHANGE_LOG.txt @@ -12,7 +12,7 @@ Changes: - improved correctness of timer when reconfiguring CPU clock speed (MCLK) - improved interrupt handling in MSP430 core - added CLI command printcalls that prints all function calls - +- fixed buffering of serial input in GUI to avoid freezing AWT. 0.93 Changes: diff --git a/se/sics/mspsim/chip/SHT11.java b/se/sics/mspsim/chip/SHT11.java index 688ac4d..9c71dfd 100644 --- a/se/sics/mspsim/chip/SHT11.java +++ b/se/sics/mspsim/chip/SHT11.java @@ -206,14 +206,14 @@ public class SHT11 extends Chip { if (bitCnt == 8) { // All bits are written! state = ACK_WRITE; - System.out.println("Wrote byte: " + output[writePos]); + if (DEBUG) System.out.println("Wrote byte: " + output[writePos]); writePos++; } } break; case ACK_WRITE: if (c == 'C' && dataHi) { - System.out.println("*** NO ACK???"); + if (DEBUG) System.out.println("*** NO ACK???"); reset(0); } break; @@ -233,7 +233,7 @@ public class SHT11 extends Chip { break; case ACK_WRITE: if (c == 'D') { // if D goes back high - then we are done here!!! - System.out.println("ACK for byte complete..."); + if (DEBUG) System.out.println("ACK for byte complete..."); if (writePos < writeLen) { state = WRITE_BYTE; writeData = output[writePos];