zeule / asus-ec-sensors

Linux HWMON sensors driver for ASUS motherboards to get sensor readings from the embedded controller
GNU General Public License v2.0
45 stars 21 forks source link

Read sensor values as signed integers #11

Closed zeule closed 2 years ago

zeule commented 2 years ago

Temperature sensor readings are signed, which is hinted by the blank value for them (oxd8, 216 as unsigned and -40 as signed). This is confirmed by direct measurements using the a freezer, T_Sensor, and C8H board.

Here we read fan sensors as signed too, because with their typical values and 2-byte width, I can't tell a difference between signed and unsigned, as I don't have a high speed chipset fan.