
14 Mar
2006
14 Mar
'06
9:49 a.m.
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