Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Main_V3_Old 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]))
