Skip to content

Commit

Permalink
Fix setting fan curve data in struct
Browse files Browse the repository at this point in the history
  • Loading branch information
tangalbert919 committed Dec 4, 2024
1 parent b32158c commit beea748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aorus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ static ssize_t fan_curve_data_store(struct device *dev, struct device_attribute
if (ret)
return ret;

gigabyte->fan_curve.temperature[gigabyte->fan_curve_index] = payload;
gigabyte->fan_curve.speed[gigabyte->fan_curve_index] = payload >> 8;
gigabyte->fan_curve.temperature[gigabyte->fan_curve_index] = data;
gigabyte->fan_curve.speed[gigabyte->fan_curve_index] = data >> 8;
return count;
}

Expand Down

0 comments on commit beea748

Please sign in to comment.