From 19b4cf5e37e52eb7e1dbd5957a505fd857092100 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 26 Sep 2007 21:28:04 +0000 Subject: [PATCH] Fix spurious critical temperature alarm. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4892 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/sensors/chips.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 74b9a482..6f0f1068 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,7 @@ lm-sensors CHANGES file SVN sensord: Log the error code on failure + sensors: Fix spurious critical temperature alarm 3.0.0-rc1 (2007-09-25) Initial release diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index bdec0d26..54fd3b47 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -246,8 +246,7 @@ static void print_chip_temp(const sensors_chip_name *name, sf = sensors_get_subfeature(name, feature, SENSORS_SUBFEATURE_TEMP_CRIT_ALARM); - if (sf && get_value(name, sf->number)) - alarm |= 1; + alarm = sf && get_value(name, sf->number); printf("\n%*s", label_size + 10, ""); print_temp_limits(limit1, limit2, s1, s2, alarm);