mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-19 19:40:49 +00:00
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:
1 parent
bf8d5f1305
commit
1262c11c2f
2 files changed
+13
-17
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user