Skip to content

Commit 1ef791d

Browse files
author
Jostar Yang
committed
Modufy get_sfp() start from 1 in get_change_event()
1 parent f13144a commit 1ef791d

File tree

1 file changed

+1
-1
lines changed
  • platform/broadcom/sonic-platform-modules-accton/as5835-54x/sonic_platform

1 file changed

+1
-1
lines changed

platform/broadcom/sonic-platform-modules-accton/as5835-54x/sonic_platform/chassis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_change_event(self, timeout=2000):
3838

3939
bitmap = 0
4040
for i in range(54):
41-
modpres = self.get_sfp(i).get_presence()
41+
modpres = self.get_sfp(i+1).get_presence()
4242
if modpres:
4343
bitmap = bitmap | (1 << i)
4444

0 commit comments

Comments
 (0)