Skip to content

Commit

Permalink
[devices]: Seastone fix issue #18767 psu fan speed issue (#18787)
Browse files Browse the repository at this point in the history
Fix issue #18787 fan information could not been shown issue.

How I did it
Add psu fan get_target_speed api support.

How to verify it
Use `show platform fan` in branch 202311.
  • Loading branch information
qnos authored and pull[bot] committed Sep 18, 2024
1 parent e76686d commit a5ac7f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions device/celestica/x86_64-cel_seastone-r0/sonic_platform/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def get_target_speed(self):
sysfs_path = sysfs_path.format(fan_index[self.fan_tray_index])
pwm = self._api_helper.read_txt_file(sysfs_path)
target = round(int(pwm) / 255 * 100.0)
else:
return self.get_speed()

return target

Expand Down

0 comments on commit a5ac7f6

Please sign in to comment.