From f3363e1a31c623c3cf63714c38fad2fef140bcff Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 1 Dec 2007 10:41:36 +0000 Subject: [PATCH] sensors: Hide spurious errors on missing adm1026 inputs. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5052 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/sensors/chips.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 26e811cb..0604253a 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,7 @@ SVN-HEAD Program pwmconfig: Better diagnostics in pwmdisable Give the fans some time to spin up Program sensors: Hide spurious errors on missing f71872f voltage inputs + Hide spurious errors on missing adm1026 inputs Program sensors-detect: Add Texas Instruments TMP401 detection Mention the f75375s driver Add SMSC LPC47B367-NC detection (no sensors) diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index 10f90bff..af0313a8 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -4849,7 +4849,8 @@ void print_adm1026(const sensors_chip_name *name) printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", cur,min,max,(alarms&adm1026_alarms_in[i])?"ALARM":""); } - } else { + } else if (i != 8 && i != 9) { /* in8 and in9 are mutually exclusive + with temp3 */ printf("ERROR: Can't get IN%d data!\n",i); } free(label); @@ -4897,7 +4898,7 @@ void print_adm1026(const sensors_chip_name *name) print_temp_info( cur, max, min, MINMAX, 0, 0); puts( (alarms&adm1026_alarms_temp[i])?" ALARM":"" ); } - } else { + } else if (i != 2) { /* temp3 is mutually exclusive with in8+in9 */ printf("ERROR: Can't get TEMP%d data!\n",i+1); } free(label);