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
Revision 2:b7ad1da7331a, committed 2015-03-16
- Comitter:
- hudakz
- Date:
- Mon Mar 16 08:52:33 2015 +0000
- Parent:
- 1:e4689408d617
- Child:
- 3:a250babd0a9f
- Commit message:
- Bug fix
Changed in this revision
| DS1820.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DS1820.cpp Mon Mar 16 08:35:03 2015 +0000
+++ b/DS1820.cpp Mon Mar 16 08:52:33 2015 +0000
@@ -96,17 +96,17 @@
present = 0;
#if DEBUG
serial.printf("Device doesn't belong to the DS1820 family\r\n");
+#endif
return false;
-#endif
}
return true;
}
+ else {
#if DEBUG
- else {
serial.printf("Invalid CRC!\r\n");
+#endif
return false;
}
-#endif
}
/**
