Skip to content

Commit

Permalink
Fixed defaulting to array element zero when writing to an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin committed Jul 28, 2016
1 parent d0a22e0 commit 4dd5453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
07/27/16
-Fixed defaulting to element zero when writing to an array value

07/09/16
-Added CIP error messages, fixed looking at wrong byte for error
-Fixed single bool from array write
Expand Down
2 changes: 1 addition & 1 deletion eip.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def _buildTagIOI(self, tagName, isBoolArray):
BaseTagLenWords = BaseTagLenBytes/2 # figure out the words for this segment
RequestPathSize += BaseTagLenWords # add it to our request size

if i < len(tagArray)-1:
if i < len(tagArray):
if not isinstance(index, list):
if index < 256: # if index is 1 byte...
RequestPathSize += 1 # add word for array index
Expand Down

0 comments on commit 4dd5453

Please sign in to comment.