Skip to content

Commit

Permalink
Fix code error for qsfp theshold offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Jostar Yang committed Aug 31, 2021
1 parent 6baa584 commit 35b9f19
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,6 @@ def get_transceiver_info(self):
(offset + XCVR_VENDOR_DATE_OFFSET), XCVR_VENDOR_DATE_WIDTH)
sfp_vendor_date_data = sfpi_obj.parse_vendor_date(
sfp_vendor_date_raw, 0)

sfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
(offset + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)

transceiver_info_dict = dict.fromkeys(self.info_dict_keys, 'N/A')
compliance_code_dict = dict()
Expand Down Expand Up @@ -531,7 +528,8 @@ def get_transceiver_threshold_info(self):

if not self.get_presence() or not sfpd_obj:
return {}
offset = QSFP_PAGE03_OFFSET

offset = QSFP_PAGE03_OFFSET

transceiver_dom_threshold_dict = dict.fromkeys(
self.threshold_dict_keys, 'N/A')
Expand Down

0 comments on commit 35b9f19

Please sign in to comment.