Skip to content

Commit 0362460

Browse files
authored
fix: using PAGE_LENGTH instead of INIT_OFFSET (#452)
1 parent 16ab403 commit 0362460

File tree

1 file changed

+1
-1
lines changed
  • sonic_platform_base/sonic_xcvr/api/public

1 file changed

+1
-1
lines changed

sonic_platform_base/sonic_xcvr/api/public/cmisCDB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def block_write_epl(self, addr, data, autopaging_flag, writelength):
363363
datachunk = data[PAGE_LENGTH*pageoffset : PAGE_LENGTH*(pageoffset + 1)]
364364
self.xcvr_eeprom.write_raw(next_page*PAGE_LENGTH+INIT_OFFSET, PAGE_LENGTH, datachunk)
365365
else:
366-
datachunk = data[INIT_OFFSET*pageoffset : ]
366+
datachunk = data[PAGE_LENGTH*pageoffset : ]
367367
self.xcvr_eeprom.write_raw(next_page*PAGE_LENGTH+INIT_OFFSET, len(datachunk), datachunk)
368368
else:
369369
sections = epl_len // writelength

0 commit comments

Comments
 (0)