mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Fix fscpos and fscher fan fault mask. (Reinhard Nissl)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2271 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -3243,7 +3243,7 @@ void print_fscpos(const sensors_chip_name *name)
|
||||
!sensors_get_feature(*name,SENSORS_FSCPOS_FAN1_STATE,&state)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
if((int) state & 0x02)
|
||||
if((int) state & 0x04)
|
||||
printf("\tfaulty\n");
|
||||
else
|
||||
printf("\t%6.0f RPM \n",fan);
|
||||
@@ -3257,7 +3257,7 @@ void print_fscpos(const sensors_chip_name *name)
|
||||
!sensors_get_feature(*name,SENSORS_FSCPOS_FAN2_STATE,&state)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
if((int) state & 0x02)
|
||||
if((int) state & 0x04)
|
||||
printf("\tfaulty\n");
|
||||
else
|
||||
printf("\t%6.0f RPM \n",fan);
|
||||
@@ -3271,7 +3271,7 @@ void print_fscpos(const sensors_chip_name *name)
|
||||
!sensors_get_feature(*name,SENSORS_FSCPOS_FAN3_STATE,&state)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
if((int) state & 0x02)
|
||||
if((int) state & 0x04)
|
||||
printf("\tfaulty\n");
|
||||
else
|
||||
printf("\t%6.0f RPM \n",fan);
|
||||
@@ -3557,7 +3557,7 @@ void print_fscher(const sensors_chip_name *name)
|
||||
&& !sensors_get_feature(*name,SENSORS_FSCHER_FAN1_STATE,&state)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
if((int) state & 0x02)
|
||||
if((int) state & 0x04)
|
||||
printf("\tfaulty\n");
|
||||
else
|
||||
printf("\t%6.0f RPM \n",fan);
|
||||
@@ -3571,7 +3571,7 @@ void print_fscher(const sensors_chip_name *name)
|
||||
&& !sensors_get_feature(*name,SENSORS_FSCHER_FAN2_STATE,&state)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
if((int) state & 0x02)
|
||||
if((int) state & 0x04)
|
||||
printf("\tfaulty\n");
|
||||
else
|
||||
printf("\t%6.0f RPM \n",fan);
|
||||
@@ -3585,7 +3585,7 @@ void print_fscher(const sensors_chip_name *name)
|
||||
&& !sensors_get_feature(*name,SENSORS_FSCHER_FAN3_STATE,&state)) {
|
||||
if (valid) {
|
||||
print_label(label,10);
|
||||
if((int) state & 0x02)
|
||||
if((int) state & 0x04)
|
||||
printf("\tfaulty\n");
|
||||
else
|
||||
printf("\t%6.0f RPM \n",fan);
|
||||
|
Reference in New Issue
Block a user