mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +00:00
fix gl518sm r00 recognition. 'sensors' will again say n/a for
voltages if an r00 chip and iterate = 0. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1568 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5fcf1bf774
commit
1dc7bcdb8b
3 files changed
+22
-8
No files matched your search
@@ -999,7 +999,9 @@ void print_gl518(const sensors_chip_name *name)
|
||||
int alarms,beeps,valid;
|
||||
int is_r00;
|
||||
|
||||
is_r00 = !strcmp(name->prefix,"gl518sm-r00");
|
||||
cur = 0.0;
|
||||
sensors_get_feature(*name,SENSORS_GL518_ITERATE,&cur);
|
||||
is_r00 = ((int) (cur + 0.5)) != 3;
|
||||
if (!sensors_get_feature(*name,SENSORS_GL518_ALARMS,&cur))
|
||||
alarms = cur + 0.5;
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user