From: <ni...@us...> - 2008-10-12 21:12:18
|
Revision: 365 http://mspsim.svn.sourceforge.net/mspsim/?rev=365&view=rev Author: nifi Date: 2008-10-12 21:12:06 +0000 (Sun, 12 Oct 2008) Log Message: ----------- removed some debug printout Modified Paths: -------------- mspsim/se/sics/mspsim/chip/SHT11.java Modified: mspsim/se/sics/mspsim/chip/SHT11.java =================================================================== --- mspsim/se/sics/mspsim/chip/SHT11.java 2008-10-12 20:53:54 UTC (rev 364) +++ mspsim/se/sics/mspsim/chip/SHT11.java 2008-10-12 21:12:06 UTC (rev 365) @@ -129,7 +129,7 @@ crc = crc8Add(crc, readData); crc = crc8Add(crc, output[0]); crc = crc8Add(crc, output[1]); - System.out.println("CRC: " + crc + " rcrc: " + rev8bits(crc)); + if (DEBUG) System.out.println("CRC: " + crc + " rcrc: " + rev8bits(crc)); output[2] = rev8bits(crc); /* finished measuring - signal with LOW! */ @@ -178,7 +178,7 @@ readData = (readData << 1) | (dataHi ? 1 : 0); bitCnt++; if (bitCnt == 8) { - System.out.println("SHT11: read: " + Utils.hex8(readData)); + if (DEBUG) System.out.println("SHT11: read: " + Utils.hex8(readData)); bitCnt = 0; state = ACK_CMD; sdataPort.setPinState(sdataPin, IOPort.PIN_LOW); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |