mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +00:00
(bobd) fixed a small bug in the alarms
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@765 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5e184497dc
commit
9a072f2667
1 file changed
+1
-1
@@ -684,7 +684,7 @@ void via686a_update_client(struct i2c_client *client)
|
||||
i = via686a_read_value(client, VIA686A_REG_FANDIV);
|
||||
data->fan_div[0] = (i >> 4) & 0x03;
|
||||
data->fan_div[1] = i >> 6;
|
||||
data->alarms = via686a_read_value(client, VIA686A_REG_ALARM1) ||
|
||||
data->alarms = via686a_read_value(client, VIA686A_REG_ALARM1) |
|
||||
(via686a_read_value(client, VIA686A_REG_ALARM2) << 8);
|
||||
data->last_updated = jiffies;
|
||||
data->valid = 1;
|
||||
|
||||
Reference in new issue
Block a user