Add the next digit of precision to temperatures, which I missed when
converting the reporting format from degrees C to 0.1 degree K.
This commit is contained in:
parent
6b9a12b391
commit
d54e775e1e
@ -854,7 +854,7 @@ smu_sensor_read(struct smu_sensor *sens)
|
||||
value <<= 1;
|
||||
|
||||
/* Convert from 16.16 fixed point degC into integer 0.1 K. */
|
||||
value = 10*(value >> 16) + 2732;
|
||||
value = 10*(value >> 16) + ((10*(value & 0xffff)) >> 16) + 2732;
|
||||
break;
|
||||
case SMU_VOLTAGE_SENSOR:
|
||||
value *= sc->sc_cpu_volt_scale;
|
||||
|
@ -235,7 +235,7 @@ smusat_sensor_read(struct smu_sensor *sens)
|
||||
/* 16.16 */
|
||||
value <<= 10;
|
||||
/* From 16.16 to 0.1 C */
|
||||
value = 10*(value >> 16) + 2732;
|
||||
value = 10*(value >> 16) + ((10*(value & 0xffff)) >> 16) + 2732;
|
||||
break;
|
||||
case SMU_VOLTAGE_SENSOR:
|
||||
/* 16.16 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user