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.
Fork of DS1820 by
Diff: DS1820.cpp
- Revision:
- 7:58b61681818f
- Parent:
- 5:2cd4928e8147
- Child:
- 8:d87e11e8d012
diff -r abfdd851218a -r 58b61681818f DS1820.cpp
--- a/DS1820.cpp Wed Apr 02 19:10:34 2014 +0000
+++ b/DS1820.cpp Tue Apr 08 09:59:18 2014 +0000
@@ -353,7 +353,7 @@
read_RAM();
if (RAM_checksum_error())
// Indicate we got a CRC error
- answer = -1000.0;
+ answer = invalid_conversion;
else {
reading = (RAM[1] << 8) + RAM[0];
if (reading & 0x8000) { // negative degrees C
