Skip to content

Commit b327b1b

Browse files
committed
allow system to boot below 0C
1 parent 08c7cea commit b327b1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

driver/temp_sensor/f75303.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static int get_temp(const int offset, int *temp)
4343
*temp = 0;
4444
return rv;
4545
}
46-
46+
temp_raw = (int8_t)(uint8_t)temp_raw;
4747
*temp = C_TO_K(temp_raw);
4848
return EC_SUCCESS;
4949
}

driver/temp_sensor/f75397.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static int get_temp(const int offset, int *temp)
4343
*temp = 0;
4444
return rv;
4545
}
46-
46+
temp_raw = (int8_t)(uint8_t)temp_raw;
4747
*temp = C_TO_K(temp_raw);
4848
return EC_SUCCESS;
4949
}

0 commit comments

Comments
 (0)