mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
(mds) Add support for w83627hf to 'sensors' program.
Assumed at this time to be identical to w83782d. No 627hf datasheet yet. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@526 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -810,7 +810,8 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
int alarms,beeps;
|
||||
int is82d, is83s;
|
||||
|
||||
is82d = !strcmp(name->prefix,"w83782d");
|
||||
is82d = (!strcmp(name->prefix,"w83782d")) ||
|
||||
(!strcmp(name->prefix,"w83627hf"));
|
||||
is83s = !strcmp(name->prefix,"w83782s");
|
||||
if (!sensors_get_feature(*name,SENSORS_W83781D_ALARMS,&cur))
|
||||
alarms = cur + 0.5;
|
||||
@@ -979,7 +980,7 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
if(!sensors_get_feature(*name,SENSORS_W83781D_SENS1,&sens)) {
|
||||
print_label(label,10);
|
||||
printf(
|
||||
"%+3.0f C (limit = %+3.0f C, hysteresis = %+3.0f C, sensor = %s) %s %s\n",
|
||||
"%+3.0f C (limit = %+3.0f C, hysteresis = %+3.0f C, sensor = %s) %s %s\n",
|
||||
cur,max,min,
|
||||
(((int)sens)==1)?"PII/Celeron diode":(((int)sens)==2)?
|
||||
"3904 transistor":"thermistor",
|
||||
@@ -1006,7 +1007,7 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
if(!sensors_get_feature(*name,SENSORS_W83781D_SENS2,&sens)) {
|
||||
print_label(label,10);
|
||||
printf(
|
||||
"%+3.1f C (limit = %+3.1f C, hysteresis = %+3.1f C, sensor = %s) %s %s\n",
|
||||
"%+3.1f C (limit = %+3.1f C, hysteresis = %+3.1f C, sensor = %s) %s %s\n",
|
||||
cur,max,min,
|
||||
(((int)sens)==1)?"PII/Celeron diode":(((int)sens)==2)?
|
||||
"3904 transistor":"thermistor",
|
||||
@@ -1034,7 +1035,7 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
if(!sensors_get_feature(*name,SENSORS_W83781D_SENS3,&sens)) {
|
||||
print_label(label,10);
|
||||
printf(
|
||||
"%+3.1f C (limit = %+3.1f C, hysteresis = %+3.1f C, sensor = %s) %s %s\n",
|
||||
"%+3.1f C (limit = %+3.1f C, hysteresis = %+3.1f C, sensor = %s) %s %s\n",
|
||||
cur,max,min,
|
||||
(((int)sens)==1)?"PII/Celeron diode":(((int)sens)==2)?
|
||||
"3904 transistor":"thermistor",
|
||||
|
Reference in New Issue
Block a user