Merge pull request #118 from stv0g/fix-invalid-datasize-calculation

sv-publisher: fix invalid calculation of the total packet length
pull/179/head
Michael Zillgith 7 years ago committed by GitHub
commit b6be355a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -367,7 +367,7 @@ SVPublisher_ASDU_getEncodedSize(SVPublisher_ASDU self)
encodedSize += 4;
/* sample */
encodedSize += 2;
encodedSize += (1 + BerEncoder_determineLengthSize(self->dataSize));
encodedSize += self->dataSize;
/* smpMod */

Loading…
Cancel
Save