mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
(Phil) Some bug fixes. As far as I can tell, the THMC50 driver seems to
be working perfectly. Of course, some real-world users might find something I didn't... BTW- I caught a minor bug which I thought was funny, and checked lm75.c to see if it was there from the start... and it was! So, I managed to catch a bug in lm75.c which might have resulted in bad temp_hyst readings during that short period between setting new limits and the next valid update. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@564 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
399608b208
commit
6df0da79cf
2 files changed
+8
-8
No files matched your search
+2
-2
@@ -378,8 +378,8 @@ void lm75_temp(struct i2c_client *client, int operation, int ctl_name,
|
||||
lm75_write_value(client,LM75_REG_TEMP_OS,data->temp_os);
|
||||
}
|
||||
if (*nrels_mag >= 2) {
|
||||
data->temp_os = TEMP_TO_REG(results[1]);
|
||||
lm75_write_value(client,LM75_REG_TEMP_HYST,data->temp_os);
|
||||
data->temp_hyst = TEMP_TO_REG(results[1]);
|
||||
lm75_write_value(client,LM75_REG_TEMP_HYST,data->temp_hyst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user