mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-20 19:41:47 +00:00
libsensors: Probe for busses before chips. This makes more sense that way,
and may allow for cleanups later. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4198 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4626fc46e6
commit
bf96a279b8
2 files changed
+3
-2
No files matched your search
+2
-2
@@ -43,10 +43,10 @@ int sensors_init(FILE *input)
|
||||
int res;
|
||||
sensors_cleanup();
|
||||
if (sensors_init_sysfs()) {
|
||||
if ((res = sensors_read_sysfs_chips()) || (res = sensors_read_sysfs_bus()))
|
||||
if ((res = sensors_read_sysfs_bus()) || (res = sensors_read_sysfs_chips()))
|
||||
return res;
|
||||
} else {
|
||||
if ((res = sensors_read_proc_chips()) || (res = sensors_read_proc_bus()))
|
||||
if ((res = sensors_read_proc_bus()) || (res = sensors_read_proc_chips()))
|
||||
return res;
|
||||
}
|
||||
if ((res = sensors_scanner_init(input)))
|
||||
|
||||
Reference in new issue
Block a user