Paul,

Even better question. I use owpython. How do i test this patch?

-darryl

On 12/7/06, Paul Alfille <[EMAIL PROTECTED]> wrote:
> Can you try the following patch to see where the failures a re occuring:
> diff -B -b -w -U3 -r1.67 ow_1820.c
> --- module/owlib/src/c/ow_1820.c        6 Dec 2006 01:50:27
> -0000       1.67
> +++ module/owlib/src/c/ow_1820.c        8 Dec 2006 01:56:27
> -0000
> @@ -350,6 +350,7 @@
>
>      /* Check for error condition */
>      if ( data[0]==0xAA && data[1]==0x00 && data[6]==0x0C ) {
> +        printf("DS18S20 Temperature "SNformat" 85C error 1st
> pass\n",SNvar(pn->sn)) ;
>          /* repeat the conversion (only once) */
>          /* Do it the most conservative way -- unpowered */
>          if ( !pow ) { // unpowered, deliver power, no communication allowed
> @@ -359,8 +360,12 @@
>               UT_delay( delay ) ;
>          }
>          if ( OW_r_scratchpad( data , pn ) ) return 1 ;
> +        if ( data[0]==0xAA && data[1]==0x00 && data[6]==0x0C ) {
> +            printf("DS18S20 Temperature "SNformat" 85C error 2nd
> pass\n",SNvar(pn->sn)) ;
> +        }
> +    } else {
> +        printf("DS18S20 Temperature "SNformat" NO ERROR\n",SNvar(pn->sn)) ;
>      }
> -
>      // Correction thanks to Nathan D. Holmes
>      //temp[0] = (_FLOAT) ((int16_t)(data[1]<<8|data[0])) * .5 ; // Main
> conversion
>      // Further correction, using "truncation" thanks to Wim Heirman
>
>
>
> On 12/7/06, Darryl VanDorp < [EMAIL PROTECTED]> wrote:
> > Nope. Both sensors fail.
> > -darryl
> >
> > On 12/7/06, Paul Alfille < [EMAIL PROTECTED]> wrote:
> > > Ok, is it consistent, which fails? powered or unpowered?
> > >
> >
>
>
> -------------------------------------------------------------------------
> 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
>
>
>


-- 
http://randomthoughts.vandorp.ca

-------------------------------------------------------------------------
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