Show
Ignore:
Timestamp:
09/18/07 11:38:14 (7 years ago)
Author:
khali
Message:

Fix fan fault handling. We were testing for fan fault before actually
retrieving the fan features, so faults could not be detected. Swapping
the instructions fixes it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/chips.c

    r4791 r4801  
    363363        free(label); 
    364364 
     365        sensors_get_available_features(name, feature, i, has_features, 
     366                                       feature_vals, size, SENSORS_FEATURE_FAN); 
     367 
    365368        if (FAN_FEATURE(SENSORS_FEATURE_FAN_FAULT) && 
    366369            FAN_FEATURE_VAL(SENSORS_FEATURE_FAN_FAULT)) 
     
    368371        else 
    369372                printf("%4.0f RPM", val); 
    370  
    371         sensors_get_available_features(name, feature, i, has_features, 
    372                                        feature_vals, size, SENSORS_FEATURE_FAN); 
    373373 
    374374        if (FAN_FEATURE(SENSORS_FEATURE_FAN_MIN) &&