mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-24 12:04:33 +00:00
Fixed small bug that made writing to the first field only of
the 'beep' file (global enable/disable) have random results. Patch by Frans E. van Dorsselaer <frans@bia-bv.demon.nl> git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@918 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
dfd80414dd
commit
2e083cada0
1 file changed
+1
-1
@@ -1708,7 +1708,7 @@ void w83781d_beep(struct i2c_client *client, int operation, int ctl_name,
|
||||
} else if (*nrels_mag >= 1)
|
||||
val =
|
||||
w83781d_read_value(client,
|
||||
W83781D_REG_BEEP_INTS1) &
|
||||
W83781D_REG_BEEP_INTS2) &
|
||||
0x7f;
|
||||
if (*nrels_mag >= 1) {
|
||||
data->beep_enable = BEEP_ENABLE_TO_REG(results[0]);
|
||||
|
||||
Reference in new issue
Block a user