Skip to content

Commit

Permalink
Fix st-one-io#8 - Add fill byte in writeItems
Browse files Browse the repository at this point in the history
  • Loading branch information
filippo.cara committed Oct 18, 2022
1 parent 455f561 commit c5b0315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/s7itemGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ class S7ItemGroup extends EventEmitter {
}

let buf = item.getWriteBuffer(value);
let reqItemLength = overheadPerItem + buf.length;
let reqItemLength = overheadPerItem + item.byteLengthWithFill

// TODO - maybe we can split an item in multiple write request parts
if (reqItemLength > maxPayloadSize) {
Expand Down

0 comments on commit c5b0315

Please sign in to comment.