2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Fix adm1025 limits, which got broken by my previous code

refactorization.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2631 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-07-04 10:51:46 +00:00
parent 3ca3fbdd55
commit 78b3499292

View File

@@ -1161,7 +1161,7 @@ void print_adm1025(const sensors_chip_name *name)
if (valid) {
print_label(label,10);
printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n",
cur,min,max,alarms&ADM1025_ALARM_IN0?"ALARM":"");
cur,min,max,alarms&(ADM1025_ALARM_IN0<<(i+(i/4)*4))?"ALARM":"");
}
} else
if (i!=4) /* Chip may have +12V input used for VID instead */
@@ -1177,8 +1177,8 @@ void print_adm1025(const sensors_chip_name *name)
if (valid) {
print_label(label,10);
print_temp_info( cur, max, min, MINMAX, 1, 0);
printf(" %s\n", alarms&ADM1025_ALARM_RFAULT?"FAULT":
alarms&ADM1025_ALARM_RTEMP?"ALARM":"");
printf(" %s\n", i==0&&(alarms&ADM1025_ALARM_RFAULT)?"FAULT":
alarms&(ADM1025_ALARM_RTEMP>>i)?"ALARM":"");
}
} else
printf("ERROR: Can't get TEMP%d data!\n", i+1);