Get rid of the lm90 hyst exception.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2211 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2004-01-09 21:35:27 +00:00
1 parent bf8d5f1305
commit 1262c11c2f
2 files changed
+13 -17

No files matched your search

+6
View File
@@ -429,6 +429,7 @@ int sensors_write_proc(sensors_chip_name name, int feature, double value)
temp%d_low -> temp_min%d
temp%d -> temp_input%d
tcrit%d -> temp_crit%d
hyst%d -> temp_hyst%d
AND all conversions listed in the matches[] structure below.
If that fails, returns old /proc feature name and magnitude.
@@ -564,6 +565,11 @@ int getsysname(const sensors_chip_feature *feature, char *sysname, int *sysmag)
*sysmag = TEMPMAG;
return 0;
}
if(sscanf(name, "hyst%d%c", &num, &check) == 1) {
sprintf(sysname, "temp_hyst%d", num);
*sysmag = TEMPMAG;
return 0;
}
if(sscanf(name, "temp%d%c", &num, &check) == 1) {
sprintf(sysname, "temp_input%d", num);
*sysmag = TEMPMAG;