Skip to content

Commit

Permalink
Fixed crash when reading a large amount of data at once
Browse files Browse the repository at this point in the history
  • Loading branch information
dmroeder committed May 5, 2019
1 parent 44e6dad commit 93ac7fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pylogix/eip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,7 @@ def _addPartialReadIOI(self, tagIOI, elements):
readIOI = pack('<BB', RequestService, RequestPathSize)
readIOI += tagIOI
readIOI += pack('<H', int(elements))
readIOI += pack('<H', self.Offset)
readIOI += pack('<H', 0x0000)
readIOI += pack('<I', self.Offset)
return readIOI

def _addWriteIOI(self, tagIOI, writeData, dataType):
Expand Down

0 comments on commit 93ac7fe

Please sign in to comment.