mirror of
https://github.com/Fred78290/nct6687d
synced 2025-01-22 07:27:29 +01:00
FIX: Wrong multiplier
This commit is contained in:
parent
0a4cc95fba
commit
070cbd2549
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ static void nct6687_update_temperatures(struct nct6687_data *data)
|
|||
{
|
||||
s32 value = (char)nct6687_read(data, NCT6687_REG_TEMP(i));
|
||||
s32 half = (nct6687_read(data, NCT6687_REG_TEMP(i) + 1) >> 7) & 0x1;
|
||||
s32 temperature = (value * 1000) + (5 * half);
|
||||
s32 temperature = (value * 1000) + (500 * half);
|
||||
|
||||
data->temperature[0][i] = temperature;
|
||||
data->temperature[1][i] = MIN(temperature, data->temperature[1][i]);
|
||||
|
|
Loading…
Reference in a new issue