Bla bla blaaaaaaa...
Dependencies: mbed
Fork of Main_V1_1 by
Diff: OneWireThermometer.cpp
- Revision:
- 5:ae57f8977663
- Parent:
- 4:784c4b53a3d4
--- a/OneWireThermometer.cpp Mon Oct 02 13:20:42 2017 +0000 +++ b/OneWireThermometer.cpp Mon Nov 20 13:12:03 2017 +0000 @@ -56,7 +56,7 @@ pc.traceOut("Address = "); for (int i = 0; i < ADDRESS_SIZE; i++) { - pc.traceOut("%x ", (int)address[i]); + pc.traceOut("%x ", (int)address[i]); } pc.traceOut("\r\n"); @@ -115,14 +115,14 @@ resetAndAddress(); oneWire.writeByte(READSCRATCH); // read Scratchpad - pc.traceOut("read = "); + // pc.traceOut("read = "); for (int i = 0; i < THERMOM_SCRATCHPAD_SIZE; i++) { // we need all bytes which includes CRC check byte data[i] = oneWire.readByte(); - pc.traceOut("%x ", (int)data[i]); + // pc.traceOut("%x ", (int)data[i]); } - pc.traceOut("\r\n"); + //pc.traceOut("\r\n"); // Check CRC is valid if you want to if (useCRC && !(OneWireCRC::crc8(data, THERMOM_CRC_BYTE) == data[THERMOM_CRC_BYTE]))