common: peci: Remove extra shift in peci_get_temp

This commit is contained in:
Jeremy Soller
2023-02-22 09:30:05 -07:00
parent 53f22a6658
commit 95a654aaff

View File

@ -111,7 +111,7 @@ uint8_t peci_get_temp(int16_t * data) {
// Read two byte temperature data if finished successfully // Read two byte temperature data if finished successfully
uint8_t low = HORDDR; uint8_t low = HORDDR;
uint8_t high = HORDDR; uint8_t high = HORDDR;
*data = (((int16_t)high << 8) | (int16_t)low) >> 6; *data = (((int16_t)high << 8) | (int16_t)low);
} }
return status; return status;
} }