mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 05:48:07 +00:00
add separate 627thf support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1988 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
parent
45576fb3fd
commit
633df4cb0b
@ -2133,12 +2133,15 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
char *label = NULL;
|
||||
double cur,min,max,fdiv,sens;
|
||||
int alarms,beeps;
|
||||
int is82d, is83s, is697hf, valid;
|
||||
int is82d, is83s, is697hf, is627thf, valid;
|
||||
|
||||
is82d = (!strcmp(name->prefix,"w83782d")) ||
|
||||
(!strcmp(name->prefix,"w83627hf"));
|
||||
(!strcmp(name->prefix,"w83627hf")) ||
|
||||
(!strcmp(name->prefix,"w83627thf"));
|
||||
is83s = !strcmp(name->prefix,"w83783s");
|
||||
is697hf = !strcmp(name->prefix,"w83697hf");
|
||||
is627thf = !strcmp(name->prefix,"w83627thf");
|
||||
is697hf = (!strcmp(name->prefix,"w83697hf")) ||
|
||||
(!strcmp(name->prefix,"w83627thf"));
|
||||
if (!sensors_get_feature(*name,SENSORS_W83781D_ALARMS,&cur))
|
||||
alarms = cur + 0.5;
|
||||
else {
|
||||
@ -2223,20 +2226,20 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
} else
|
||||
printf("ERROR: Can't get IN4 data!\n");
|
||||
free_the_label(&label);
|
||||
if (!sensors_get_label_and_valid(*name,SENSORS_W83781D_IN5,&label,&valid) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83781D_IN5,&cur) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83781D_IN5_MIN,&min) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83781D_IN5_MAX,&max)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s %s\n",
|
||||
cur,min,max,alarms&W83781D_ALARM_IN5?"ALARM":" ",
|
||||
beeps&W83781D_ALARM_IN5?"(beep)":"");
|
||||
}
|
||||
} else
|
||||
printf("ERROR: Can't get IN5 data!\n");
|
||||
free_the_label(&label);
|
||||
if (1) {
|
||||
if (!is627thf) {
|
||||
if (!sensors_get_label_and_valid(*name,SENSORS_W83781D_IN5,&label,&valid) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83781D_IN5,&cur) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83781D_IN5_MIN,&min) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83781D_IN5_MAX,&max)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s %s\n",
|
||||
cur,min,max,alarms&W83781D_ALARM_IN5?"ALARM":" ",
|
||||
beeps&W83781D_ALARM_IN5?"(beep)":"");
|
||||
}
|
||||
} else
|
||||
printf("ERROR: Can't get IN5 data!\n");
|
||||
free_the_label(&label);
|
||||
if (!sensors_get_label_and_valid(*name,SENSORS_W83781D_IN6,&label,&valid) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83781D_IN6,&cur) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83781D_IN6_MIN,&min) &&
|
||||
@ -2250,7 +2253,7 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
} else
|
||||
printf("ERROR: Can't get IN6 data!\n");
|
||||
free_the_label(&label);
|
||||
}
|
||||
} /* !is627thf */
|
||||
if (is82d || is697hf) {
|
||||
if (!sensors_get_label_and_valid(*name,SENSORS_W83782D_IN7,&label,&valid) &&
|
||||
!sensors_get_feature(*name,SENSORS_W83782D_IN7,&cur) &&
|
||||
|
@ -344,6 +344,7 @@ void do_a_print(sensors_chip_name name)
|
||||
(!strcmp(name.prefix,"w83782d")) ||
|
||||
(!strcmp(name.prefix,"w83783s")) ||
|
||||
(!strcmp(name.prefix,"w83627hf")) ||
|
||||
(!strcmp(name.prefix,"w83627thf")) ||
|
||||
(!strcmp(name.prefix,"w83697hf")) ||
|
||||
(!strcmp(name.prefix,"w83791d")) ||
|
||||
(!strcmp(name.prefix,"as99127f")))
|
||||
|
Loading…
x
Reference in New Issue
Block a user