commit | 14d1402dd899a869eaab01fd9d117f020a9787a3 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Wed Aug 25 15:38:29 2021 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Aug 27 09:10:11 2021 -0500 |
tree | d875ba38f1b7263aa2e3960c21913c822c284e09 | |
parent | abbcfc5e60ea05c6ee7b8f57830fceca0ef4d306 [diff] |
The label field for temperature sensors is decimal It turns out that the OCC driver displays the value of the tempX_label file as a decimal as opposed to the hex format we just speculated it would be. For example, a 0xC0000001 value will read as 3221225473. Change the code to read that as a uint32_t and then extract that type and instance fields directly from it. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I64db4670cf8a48030cca041fad8892de6188f89e