2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +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:
Mark D. Studebaker
2002-11-03 16:52:56 +00:00
parent 5fcf1bf774
commit 1dc7bcdb8b
3 changed files with 22 additions and 8 deletions

View File

@@ -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 {