Skip to content

Commit 357923d

Browse files
Sudharsan D.Glguohan
Sudharsan D.G
authored andcommitted
[devices]: Fixing get_transceiver_change_event for z9100 (#2712)
1 parent 3a3a221 commit 357923d

File tree

1 file changed

+2
-2
lines changed
  • device/dell/x86_64-dell_z9100_c2538-r0/plugins

1 file changed

+2
-2
lines changed

device/dell/x86_64-dell_z9100_c2538-r0/plugins/sfputil.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ def check_interrupts(self, port_dict):
365365

366366
port = self.port_start
367367
while port <= self.port_end:
368-
if interrupt_reg & (1 << port):
368+
if interrupt_reg & (1 << (port-1)):
369369
# update only if atleast one port has generated
370370
# interrupt
371371
is_port_dict_updated = True
372-
if status_reg & (1 << port):
372+
if status_reg & (1 << (port-1)):
373373
# status reg 1 => optics is removed
374374
port_dict[port] = '0'
375375
else:

0 commit comments

Comments
 (0)