mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
Rename sensors_feature_data.mode to flags, as we plan to use it to
store non-mode flags soon. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4757 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -88,7 +88,7 @@ readUnknownChip
|
||||
if (!(label = sensors_get_label (chip, sensor->number))) {
|
||||
sensorLog (LOG_ERR, "Error getting sensor label: %s/%s", chip->prefix, sensor->name);
|
||||
ret = 21;
|
||||
} else if (!(sensor->mode & SENSORS_MODE_R)) {
|
||||
} else if (!(sensor->flags & SENSORS_MODE_R)) {
|
||||
sensorLog (LOG_INFO, "%s: %s", sensor->name, label);
|
||||
} else if ((ret = sensors_get_value (chip, sensor->number, &value))) {
|
||||
sensorLog (LOG_ERR, "Error getting sensor data: %s/%s: %s", chip->prefix, sensor->name, sensors_strerror (ret));
|
||||
|
@@ -41,7 +41,7 @@ void print_chip_raw(const sensors_chip_name *name)
|
||||
data->name);
|
||||
continue;
|
||||
}
|
||||
if (data->mode & SENSORS_MODE_R) {
|
||||
if (data->flags & SENSORS_MODE_R) {
|
||||
if (sensors_get_value(name, data->number, &val))
|
||||
printf("ERROR: Can't get feature `%s' data!\n",
|
||||
data->name);
|
||||
|
Reference in New Issue
Block a user