Skip to content

Commit

Permalink
[devices]: Fixing get_transceiver_change_event for z9100 (#2712)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudharsan D.G authored and lguohan committed Mar 28, 2019
1 parent 3a3a221 commit 357923d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions device/dell/x86_64-dell_z9100_c2538-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,11 @@ def check_interrupts(self, port_dict):

port = self.port_start
while port <= self.port_end:
if interrupt_reg & (1 << port):
if interrupt_reg & (1 << (port-1)):
# update only if atleast one port has generated
# interrupt
is_port_dict_updated = True
if status_reg & (1 << port):
if status_reg & (1 << (port-1)):
# status reg 1 => optics is removed
port_dict[port] = '0'
else:
Expand Down

0 comments on commit 357923d

Please sign in to comment.