[U-Boot-Users] Bug in DTT for temperatures below zero degress !!!

Steven Scholz steven.scholz at imc-berlin.de
Tue Mar 14 09:49:11 CET 2006


Wolfgang Denk wrote:

>> -    return (dtt_read(sensor, DTT_READ_TEMP) / 256);
>> +    return ( ((signed short) dtt_read(sensor, DTT_READ_TEMP)) / 256);
> 
> This is not the right way to fix it. I reject this patch.
> 
> dtt_read() is declared to return "int", so no  such  cast  should  be
> needed, i. e. you fix the symptoms instead of the cause.

You're probably right. But at the moment I have no access to suitable
hardware and I am off for a two weeks vacations today.
I promise to test this when I am back.

Thansk.

--
Steven






More information about the U-Boot mailing list