Corrected scaling of temperature limits.

See ticket 181 and 184. Basically, the limits were scaled by 100 instead of
10.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@594 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-10-06 16:59:55 +00:00
1 parent d95c8361c2
commit 847d1d3d0f
1 file changed
+3 -3
+3 -3
View File
@@ -157,10 +157,10 @@ extern inline u8 FAN_TO_REG(long rpm, int div)
((temp)<256?((((temp)&0x1fe) >> 1) * 10) + ((temp) & 1) * 5: \
((((temp)&0x1fe) >> 1) -255) * 10 - ((temp) & 1) * 5) \
#define TEMP_LIMIT_FROM_REG(val) (((val)>0x80?(val)-0x100:(val))*100)
#define TEMP_LIMIT_FROM_REG(val) (((val)>0x80?(val)-0x100:(val))*10)
#define TEMP_LIMIT_TO_REG(val) SENSORS_LIMIT(((val)<0?(((val)-50)/100):\
((val)+50)/100), \
#define TEMP_LIMIT_TO_REG(val) SENSORS_LIMIT(((val)<0?(((val)-5)/10):\
((val)+5)/10), \
0,255)
#define ALARMS_FROM_REG(val) (val)