Skip to content

Commit

Permalink
Modify get_name to use product_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jostar Yang committed Sep 16, 2021
1 parent ab2d92e commit 2b5320e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def get_name(self):
Returns:
string: The name of the device
"""

return self._api_helper.hwsku
return self._eeprom.get_product_name()

def get_presence(self):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,6 @@ def get_serial(self):

def get_mac(self):
return self._eeprom.get('0x24', NULL)

def get_product_name(self):
return self._eeprom.get('0x21', NULL)

0 comments on commit 2b5320e

Please sign in to comment.