Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/drivers/thermal/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void thermal_ofw_params_parse(struct rt_ofw_node *np,
* For now, the thermal framework supports only one sensor per thermal zone.
* Thus, we are considering only the first two values as slope and offset.
*/
if (rt_ofw_prop_read_u32_array_index(np, "coefficients", 0, 1, coef) < 0)
if (rt_ofw_prop_read_u32_array_index(np, "coefficients", 0, 2, coef) < 0)
{
coef[0] = 1;
coef[1] = 0;
Expand Down