changeset 75:39d629c7d935

Change error #define's so that they are outside the range the DS1820 can report.
author darius@Inchoate
date Wed, 21 Jan 2009 22:50:43 +1030
parents e3d1f56ba0c8
children 4abce5954d25
files 1wire.h
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/1wire.h	Wed Jan 21 18:01:40 2009 +1030
+++ b/1wire.h	Wed Jan 21 22:50:43 2009 +1030
@@ -80,11 +80,10 @@
 #define OW_FAMILY_TEMP		0x10
 
 /* Return codes for OWGetTemp */
-/* XXX: make bigger otherwise we can't handle stuff below -10C */
-#define OW_TEMP_BADVAL		-1000
-#define OW_TEMP_WRONG_FAM	-1000
-#define OW_TEMP_CRC_ERR		-1001
-#define OW_TEMP_NO_ROM		-1002
+#define OW_TEMP_BADVAL		-6000
+#define OW_TEMP_WRONG_FAM	-6001
+#define OW_TEMP_CRC_ERR		-6002
+#define OW_TEMP_NO_ROM		-6003
 
 /* Helpers for OWGetTemp's number system */
 #define GETWHOLE(x)	((x) / 100)