Fix pc87366 temp alarms.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2484 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2004-04-27 18:24:29 +00:00
1 parent cf3e2b8cef
commit 23eed72eb1
1 file changed
+8 -2
+8 -2
View File
@@ -4280,6 +4280,8 @@ void print_pc87366(const sensors_chip_name *name)
if (valid) {
print_label(label, 10);
print_temp_info(cur, 0, 0, SINGLE, 0, 0);
if (alarms&(1<<1))
printf("ALARM");
printf("\n");
}
} else
@@ -4293,7 +4295,7 @@ void print_pc87366(const sensors_chip_name *name)
if (valid) {
print_label(label, 10);
print_temp_info(cur, max, min, MINMAX, 0, 0);
if (alarms&(1<<1))
if (alarms&(1<<2))
printf("ALARM");
printf("\n");
}
@@ -4306,6 +4308,8 @@ void print_pc87366(const sensors_chip_name *name)
if (valid) {
print_label(label, 10);
print_temp_info(cur, 0, 0, SINGLE, 0, 0);
if (alarms&(1<<3))
printf("ALARM");
printf("\n");
}
} else
@@ -4320,7 +4324,7 @@ void print_pc87366(const sensors_chip_name *name)
if (valid) {
print_label(label, 10);
print_temp_info(cur, max, min, MINMAX, 0, 0);
if (alarms&(1<<2))
if (alarms&(1<<4))
printf("ALARM");
printf("\n");
}
@@ -4333,6 +4337,8 @@ void print_pc87366(const sensors_chip_name *name)
if (valid) {
print_label(label, 10);
print_temp_info(cur, 0, 0, SINGLE, 0, 0);
if (alarms&(1<<5))
printf("ALARM");
printf("\n");
}
} else