Changeset 4511
- Timestamp:
- 06/28/07 16:46:08 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/chips_generic.c
r4428 r4511 65 65 iter->mapping == feature->number) { 66 66 sensors_feature_type type = sensors_feature_get_type(iter); 67 unsigned int ind ex;67 unsigned int indx; 68 68 69 69 if (type == SENSORS_FEATURE_UNKNOWN) 70 70 continue; 71 71 72 ind ex = type - first_val - 1;73 if (ind ex >= size) {72 indx = type - first_val - 1; 73 if (indx >= size) { 74 74 printf("ERROR: Bug in sensors: index out of bound"); 75 75 return; 76 76 } 77 77 78 if (get_feature_value(name, iter, &feature_vals[ind ex]))78 if (get_feature_value(name, iter, &feature_vals[indx])) 79 79 printf("ERROR: Can't get %s data!\n", iter->name); 80 80 81 81 /* some chips don't have all the features they claim to have */ 82 /* has_features[ind ex] = (feature_vals[index] != 127); */83 has_features[ind ex] = 1;82 /* has_features[indx] = (feature_vals[indx] != 127); */ 83 has_features[indx] = 1; 84 84 } 85 85 }
