2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

sensors_get_value() and sensors_set_value(), respectively.

The new names better reflect what the functions do.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4695 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-08-22 17:06:13 +00:00
parent 8bcdc331a0
commit b0fb417996
6 changed files with 25 additions and 25 deletions

View File

@@ -92,7 +92,7 @@ void print_vid_info(const sensors_chip_name *name, int f_vid, int label_size)
double vid;
if ((label = sensors_get_label(name, f_vid))
&& !sensors_get_feature(name, f_vid, &vid)) {
&& !sensors_get_value(name, f_vid, &vid)) {
print_label(label, label_size);
printf("%+6.3f V\n", vid);
}
@@ -113,7 +113,7 @@ void print_unknown_chip(const sensors_chip_name *name)
continue;
}
if (data->mode & SENSORS_MODE_R) {
if(sensors_get_feature(name, data->number, &val)) {
if (sensors_get_value(name, data->number, &val)) {
printf("ERROR: Can't get feature `%s' data!\n",data->name);
continue;
}