diff options
author | jamesbond <jamesbond> | 2015-05-01 16:44:30 +0000 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2015-10-25 15:49:33 -0200 |
commit | c0476013aa8efa4ddfe44aaaa5e82d8b230395f5 (patch) | |
tree | 55089588a5def40289a4e3d76a2c2d3b45cf107c /modules | |
parent | f322bc78b3ebbcd59f51c7a7c306780255f552bf (diff) |
hwmon: make sure we find sensors even if it does not start with 1 [http://murga-linux.com/puppy/viewtopic.php?p=841760#841760]
Diffstat (limited to 'modules')
-rw-r--r-- | modules/devices/sensors.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/devices/sensors.c b/modules/devices/sensors.c index 38156d27..ed4bc357 100644 --- a/modules/devices/sensors.c +++ b/modules/devices/sensors.c @@ -246,7 +246,10 @@ static void read_sensors_hwmon(void) DEBUG("should be reading from %s", path_sensor); if (!g_file_get_contents(path_sensor, &tmp, NULL, NULL)) { g_free(path_sensor); - break; + if (count<256) + continue; // brute-force find all + else + break; } mon = g_strdup_printf(sensor->key_format, count); |