Skip to content

Commit

Permalink
fix: using PAGE_LENGTH instead of INIT_OFFSET (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
rqx110 authored May 8, 2024
1 parent 16ab403 commit 0362460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_platform_base/sonic_xcvr/api/public/cmisCDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def block_write_epl(self, addr, data, autopaging_flag, writelength):
datachunk = data[PAGE_LENGTH*pageoffset : PAGE_LENGTH*(pageoffset + 1)]
self.xcvr_eeprom.write_raw(next_page*PAGE_LENGTH+INIT_OFFSET, PAGE_LENGTH, datachunk)
else:
datachunk = data[INIT_OFFSET*pageoffset : ]
datachunk = data[PAGE_LENGTH*pageoffset : ]
self.xcvr_eeprom.write_raw(next_page*PAGE_LENGTH+INIT_OFFSET, len(datachunk), datachunk)
else:
sections = epl_len // writelength
Expand Down

0 comments on commit 0362460

Please sign in to comment.