Am Donnerstag, 14. Dezember 2006 22:29 schrieb Paul Alfille:
> Jan,
>
> Thank you very much!
>
I think I found another occurrence of this bug. As the discharge lines command
is not really needed for branch turnoff, I left it out.
diff -Naur owfs.orig/module/owlib/src/c/ow_select.c
owfs/module/owlib/src/c/ow_select.c
--- owfs.orig/module/owlib/src/c/ow_select.c 2006-12-14 20:50:04.000000000
+0100
+++ owfs/module/owlib/src/c/ow_select.c 2006-12-14 23:49:21.000000000 +0100
@@ -148,14 +148,14 @@
/* find every DS2409 (family code 1F) and switch off, at this depth */
static int Turnoff( int depth, const struct parsedname * pn ) {
- BYTE sent[2] = { 0xCC, 0x66,} ;
+ BYTE sent[] = { 0x66,} ;
int ret ;
//printf("TURNOFF entry depth=%d\n",depth) ;
if( (ret= BUS_reset(pn)) ) return ret ;
if ( depth && (ret=BUS_select_subbranch(&(pn->bp[depth-1]),pn)) ) return
ret ;
- return BUS_send_data(sent,2,pn) ;
+ return BUS_send_data(sent,1,pn) ;
}
static int BUS_selection_error( int ret ) {
Kind regards
Jan
--
Wie kann eigentlich eine 1:1-Kopie nicht wörtlich sein?
Wahrscheinlich hat das Fernsehen meine Phantasie zerstört.
(Das habe ich jetzt nicht-wörtlich von den Simpsons geklaut,
selbst wäre ich zu einem solchen Gedanken natürlich nicht imstande.)
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers