Hi All, Hi Paul

I think I found a bug in the DS2409 code. According to the datasheet, the 
discharge lines command is 0x99, not 0xCC (that's Smart-On Main). Proposed 
patch:

--- owfs.orig/module/owlib/src/c/ow_2409.c      2006-12-14 20:50:04.000000000 
+0100
+++ owfs/module/owlib/src/c/ow_2409.c   2006-12-14 20:51:16.000000000 +0100
@@ -128,7 +128,7 @@
 }

 static int OW_discharge( const struct parsedname * pn ) {
-    BYTE dis[] = { 0xCC, } ;
+    BYTE dis[] = { 0x99, } ;
     struct transaction_log t[] = {
         TRXN_START,
         { dis, NULL, 1, trxn_match } ,

Kind regards

        Jan
-- 
Vollkommener Blödsinn: Selbst wenn man den mit was Vernünftigen
mischt, kommt immer noch mindestens 50%er Blödsinn 'bei 'raus.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to