2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

It isn't an error when a w83792d has no fan4-7. Patch from

Yuan Mu.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3266 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2006-03-03 20:27:51 +00:00
parent 357b01228e
commit 1330a877b7

View File

@@ -2688,8 +2688,7 @@ void print_w83792d(const sensors_chip_name *name)
printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n",
cur,min,fdiv, (alarms&W83792D_ALARM_FAN4)?"ALARM":"");
}
} else
printf("ERROR: Can't get FAN4 data!\n");
}
free(label);
if (!sensors_get_label_and_valid(*name,SENSORS_W83792D_FAN5,&label,&valid) &&
@@ -2701,8 +2700,7 @@ void print_w83792d(const sensors_chip_name *name)
printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n",
cur,min,fdiv, (alarms&W83792D_ALARM_FAN5)?"ALARM":"");
}
} else
printf("ERROR: Can't get FAN5 data!\n");
}
free(label);
if (!sensors_get_label_and_valid(*name,SENSORS_W83792D_FAN6,&label,&valid) &&
@@ -2714,8 +2712,7 @@ void print_w83792d(const sensors_chip_name *name)
printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n",
cur,min,fdiv, (alarms&W83792D_ALARM_FAN6)?"ALARM":"");
}
} else
printf("ERROR: Can't get FAN6 data!\n");
}
free(label);
if (!sensors_get_label_and_valid(*name,SENSORS_W83792D_FAN7,&label,&valid) &&
@@ -2727,8 +2724,7 @@ void print_w83792d(const sensors_chip_name *name)
printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n",
cur,min,fdiv, (alarms&W83792D_ALARM_FAN7)?"ALARM":"");
}
} else
printf("ERROR: Can't get FAN7 data!\n");
}
free(label);
if (!sensors_get_label_and_valid(*name,SENSORS_W83792D_TEMP1,&label,&valid) &&