R: [Voyage-linux] Negative temperature reading on Wrap
Michael Renzmann
(spam-protected)
Thu Dec 15 23:09:00 HKT 2005
Hi.
On Tue, 2005-12-13 at 15:31 +0100, Tommaso wrote:
> I have performed again the temperature measurements monitoring the LM77
> output while the WRAP cools down. It definitely seems to be a
> signed/unsigned problem
Yes, it is. National had a really strange idea regarding how to store
temperatures in the LM77 registers, and the conversion routines are
wrong.
Please let me know if the attached patch works for you. It's for lm77.c
from 2.6.14.3, but the patch should apply cleanly against sooner or
later versions as well, I think. I tested it locally and it worked for
me.
Bye, Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm77fix.patch
Type: text/x-patch
Size: 1447 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20051215/cc0725b8/attachment.bin>
More information about the Voyage-linux
mailing list