Jan,
You currently return the name a of single device. And error if there are
none, or more than one.
What do you really intend? Do you want to know if there are
A. exactly 1 (and it's number) ?
B more than 0 ?
C more than 1 ?
Paul Alfille
On 12/12/06, Paul Alfille <[EMAIL PROTECTED]> wrote:
I'm impressed. You certainly figured out the code style.
Questions:
1. We "read_ROM" and get a positlve result if any devices exist on the
selected path?
2. Should we use a name like "not_empty" or "search" ?
Paul Alfille
On 12/12/06, Jan Kandziora <[EMAIL PROTECTED]> wrote:
> Hi all, hi Paul,
>
> I made a small enhancement to owfs to implement the "read ROM" function
> all
> onewire chips have. With this function, a single key on a (sub)-bus can
> be
> identified without (fairly expensive) scanning.
>
> The attached code works with ibutton keys on the buses of a DS2482-800
> and
> with ibutton keys on the sub-buses of the DS2409. I'm a little unsure if
> the
> error handling is correct, so I'll wait for your opinion until I make up
> a
> proper patch. Most mysterious to me is how to signalize an error.
> Returning
> -EINVAL leads to that:
>
> read_ROM (simultaneous) dat=ff.ffffffffffff crc8=ff crc8c=14 ret=1
> read_ROM (simultaneous) dat=ff.ffffffffffff crc8=ff crc8c=14 ret=1
> read_ROM (simultaneous) dat=ff.ffffffffffff crc8=ff crc8c=14 ret=1
> *** glibc detected *** double free or corruption (fasttop): 0x08084b98
> ***
> Abgebrochen
>
> Kind regards
>
> Jan
> --
> The first law of demos:
> - never try to actually use the system for anything
>
>
>
> -------------------------------------------------------------------------
> 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
>
>
>
>
-------------------------------------------------------------------------
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