From 95a654aaff6e1f7174a9b26aa851570bc94d5639 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 22 Feb 2023 09:30:05 -0700 Subject: [PATCH] common: peci: Remove extra shift in peci_get_temp --- src/board/system76/common/peci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/board/system76/common/peci.c b/src/board/system76/common/peci.c index 440be4d..29929d4 100644 --- a/src/board/system76/common/peci.c +++ b/src/board/system76/common/peci.c @@ -111,7 +111,7 @@ uint8_t peci_get_temp(int16_t * data) { // Read two byte temperature data if finished successfully uint8_t low = HORDDR; uint8_t high = HORDDR; - *data = (((int16_t)high << 8) | (int16_t)low) >> 6; + *data = (((int16_t)high << 8) | (int16_t)low); } return status; }