diff --git a/src/sampled_values/sv_publisher.c b/src/sampled_values/sv_publisher.c index c6c178d5..4bb663e7 100644 --- a/src/sampled_values/sv_publisher.c +++ b/src/sampled_values/sv_publisher.c @@ -410,7 +410,7 @@ SVPublisher_ASDU_encodeToBuffer(SVPublisher_ASDU self, uint8_t* buffer, int bufP /* SmpMod */ if (self->hasSmpMod) { - bufPos = BerEncoder_encodeTL(0x88, 4, buffer, bufPos); + bufPos = BerEncoder_encodeTL(0x88, 2, buffer, bufPos); bufPos = encodeUInt16FixedSize(self->smpMod, buffer, bufPos); }