#2 support for DS18B20 temperature file

open
nobody
None
5
2012-09-14
2003-12-17
Anonymous
No

fixes the "no such device" error with 18B20 (type 0x28)
temperature sensor

================
diff -ru owlib-0.985p1_orig/src/c/ow_1820.c
owlib-0.985p1/src/c/ow_1820.c
--- owlib-0.985p1_orig/src/c/ow_1820.c Wed Dec 17
11:03:44 2003
+++ owlib-0.985p1/src/c/ow_1820.c Wed Dec 17 11:04:16 2003
@@ -112,6 +112,7 @@
if ( OW_temp( &T , pn ) ) return -EINVAL ;
break ;
case '2':
+ case '8':
if ( OW_22temp( &T , pn ) ) return -EINVAL ;
break ;
default:
================

Discussion


Anonymous


Cancel   Add attachments