On Wed, 26 Oct 2005, Alfille, Paul H.,M.D. wrote:

Thanks. I especially appreciate the patch.

I take it the code wasn't too hard to decypher?

Hehe... I assumed that this was DS2413 specific issue and I looked into low level driver of this chip. But this is 'dirty' patch. I think that 'right way' should be some level up where emulatiion of toggling single bits is. But I couldn't find this in quick search and I suppose that fixing/rewriting that part of code will be not so easy as this. Or just disable this option for this chip - there is no native bit set in DS2413 - you must always set two bits together.


Regards

majek
--
"If you want something done...do yourself!"
Jean-Baptiste Emmanuel Zorg

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Marek
Wodzinski
Sent: Wednesday, October 26, 2005 3:10 PM
To: Owfs-developers@lists.sourceforge.net
Subject: [Owfs-developers] Bug in DS2413


Hello,

There is a bug in operating on PIO.A or PIO.B.
If you write to PIO.A, state of PIO.B (and vice versa) is fetched from pin
state instead of latch state. This lead to loss of state of PIO.B if you
write to PIO.A (and vice versa).
For example:
I have pull down resistor in PIN.B, so:
cat sensed.B --> 0
echo 0 >PIO.B
cat latch.B --> 1
echo something >PIO.A
cat latch.B --> 0

Patch attached


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to