Skip to content

Commit

Permalink
[Ufispace] Use default pddf api to get psu capacity on s6301-56st
Browse files Browse the repository at this point in the history
Signed-off-by: nonodark <ef67891@yahoo.com.tw>
  • Loading branch information
nonodark committed Jan 17, 2024
1 parent 0d1bbeb commit 78217c6
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,12 @@

class Psu(PddfPsu):
"""PDDF Platform-Specific PSU class"""

PLATFORM_PSU_CAPACITY = 750

def __init__(self, index, pddf_data=None, pddf_plugin_data=None):
PddfPsu.__init__(self, index, pddf_data, pddf_plugin_data)
self.psu_fru = PsuFru(self.psu_index)

# Provide the functions/variables below for which implementation is to be overwritten
def get_maximum_supplied_power(self):
"""
Retrieves the maximum supplied power by PSU (or PSU capacity)
Returns:
A float number, the maximum power output in Watts.
e.g. 1200.1
"""
return float(self.PLATFORM_PSU_CAPACITY)

def get_power(self):
"""
Retrieves current energy supplied by PSU
Expand Down

0 comments on commit 78217c6

Please sign in to comment.