mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-15 19:13:10 +00:00
GL518SM buglet fixed
Initially, random values were put in the voltage registers. If iterate was left at 0, these random values were put in /proc. Solution: initialize voltage[0..2] with 0. Frodo git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@709 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
267a60f254
commit
4319123b28
1 file changed
+1
@@ -417,6 +417,7 @@ static int gl518_detect(struct i2c_adapter *adapter, int address,
|
||||
data->quit_thread = 0;
|
||||
data->thread = NULL;
|
||||
data->alarm_mask = 0xff;
|
||||
data->voltage[0]=data->voltage[1]=data->voltage[2]=0;
|
||||
gl518_init_client((struct i2c_client *) new_client);
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user