Skip to content

Commit

Permalink
Comment out tx power validation check and program the passed value (#389
Browse files Browse the repository at this point in the history
)

* Comment out power validation check and program the passed value to the
eeprom write function.

Signed-off-by: Abhishek Dosi <[email protected]>

* Update c_cmis.py

---------

Signed-off-by: Abhishek Dosi <[email protected]>
  • Loading branch information
abdosi authored and StormLiangMS committed Aug 6, 2023
1 parent 411d5b2 commit 5af6f9f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sonic_platform_base/sonic_xcvr/api/public/c_cmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ def set_tx_power(self, tx_power):
Return True if the provision succeeds, False if it fails
'''
min_prog_tx_output_power, max_prog_tx_output_power = self.get_supported_power_config()
if tx_power > max_prog_tx_output_power or tx_power < min_prog_tx_output_power:
raise ValueError('Provisioned TX power out of range. Max: %.1f; Min: %.1f dBm.'
%(max_prog_tx_output_power, min_prog_tx_output_power))
status = self.xcvr_eeprom.write(consts.TX_CONFIG_POWER, tx_power)
time.sleep(1)
return status
Expand Down

0 comments on commit 5af6f9f

Please sign in to comment.