From a1e9951ac6d95431589388c766d028fed4381e63 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sat, 13 May 2000 17:28:52 +0000 Subject: [PATCH] (mds) For as99127f, remove some entries and invert beep bits. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@806 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/sensors/chips.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index 3fcc1ed9..71714c7b 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -1178,8 +1178,7 @@ void print_w83781d(const sensors_chip_name *name) int is82d, is83s,valid; is82d = (!strcmp(name->prefix,"w83782d")) || - (!strcmp(name->prefix,"w83627hf")) || - (!strcmp(name->prefix,"as99127f")); + (!strcmp(name->prefix,"w83627hf")); is83s = !strcmp(name->prefix,"w83783s"); if (!sensors_get_feature(*name,SENSORS_W83781D_ALARMS,&cur)) alarms = cur + 0.5; @@ -1188,9 +1187,12 @@ void print_w83781d(const sensors_chip_name *name) alarms = 0; } - if (!sensors_get_feature(*name,SENSORS_W83781D_BEEPS,&cur)) + if (!sensors_get_feature(*name,SENSORS_W83781D_BEEPS,&cur)) { beeps = cur + 0.5; - else { + /* strangely, as99127f beep bits are inverted */ + if (!strcmp(name->prefix,"as99127f")); + beeps = ~beeps; + } else { printf("ERROR: Can't get beep data!\n"); beeps = 0; }