Skip to content

Commit b2b7fc2

Browse files
authored
Merge pull request #526 from FrameworkComputer/hx30.fix_cold_temps
Allow system to boot below 0C
2 parents ee6dea0 + fd328d3 commit b2b7fc2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

driver/temp_sensor/f75303.c

Lines changed: 1 addition & 1 deletion
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)temp_raw;
4747
*temp = C_TO_K(temp_raw);
4848
return EC_SUCCESS;
4949
}

driver/temp_sensor/f75397.c

Lines changed: 1 addition & 1 deletion
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)temp_raw;
4747
*temp = C_TO_K(temp_raw);
4848
return EC_SUCCESS;
4949
}

0 commit comments

Comments
 (0)