Skip to content

Commit

Permalink
fix(bacnet): fixed length calculation for APDUComplexAck
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Apr 22, 2022
1 parent ad729e2 commit a761949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
[simple uint 8 originalInvokeId ]
[optional uint 8 sequenceNumber 'segmentedMessage' ]
[optional uint 8 proposedWindowSize 'segmentedMessage' ]
[optional BACnetServiceAck('apduLength - (3 + (segmentedMessage ? 2 : 0))')
[optional BACnetServiceAck('apduLength - (2 + (segmentedMessage ? 2 : 0))')
serviceAck '!segmentedMessage' ]
// TODO: maybe we should put this in the discriminated types below
[optional uint 8 segmentServiceChoice 'segmentedMessage && sequenceNumber != 0']
Expand Down

0 comments on commit a761949

Please sign in to comment.