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