mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
(Kyösti)
* typo fix and fine-tuning outputs git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@517 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
acd5a15556
commit
5811024b75
1 file changed
+10
-5
+10
-5
@@ -603,10 +603,11 @@ void gl518_update_client_rev00(struct i2c_client *client)
|
||||
|
||||
if (data->iterate == 1) { /* 10 sec delay */
|
||||
/* as that update is slow, we consider the data valid for 30 seconds */
|
||||
if ((jiffies - data->last_updated_v00 > 30*HZ) || (data->alarms & 7)) {
|
||||
if ((jiffies - data->last_updated_v00 > 30*HZ) || (data->alarms & 7)
|
||||
|| (! data->valid)) {
|
||||
gl518_update_vins(client);
|
||||
for (i=0; i<4; i++)
|
||||
data->voltage[4]=data->iter_voltage[i];
|
||||
data->voltage[i]=data->iter_voltage[i];
|
||||
}
|
||||
} else if (data->iterate == 2) { /* show results of last iteration */
|
||||
for (i=0; i<4; i++)
|
||||
@@ -902,10 +903,14 @@ void gl518_iterate(struct i2c_client *client, int operation, int ctl_name,
|
||||
results[0] = data->iterate;
|
||||
*nrels_mag = 1;
|
||||
} else if (operation == SENSORS_PROC_REAL_WRITE) {
|
||||
if (*nrels_mag >= 1)
|
||||
if ((*nrels_mag >= 1) && (data->iterate!=results[0])) {
|
||||
for (i=0; i<4; i++) {
|
||||
data->voltage[i] = 0;
|
||||
data->iter_voltage[i] = 105; /* bogus */
|
||||
}
|
||||
data->iterate=results[0];
|
||||
for (i=0; i<4; i++)
|
||||
data->voltage[i] = 0;
|
||||
data->valid=0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user