diff --git a/pycomm3/cip/data_types.py b/pycomm3/cip/data_types.py index 1ffab37..76d6fc1 100644 --- a/pycomm3/cip/data_types.py +++ b/pycomm3/cip/data_types.py @@ -869,7 +869,7 @@ def decode(cls, buffer: _BufferType, length: Optional[int] = None) -> List[str]: else: _len = _length - _val = [cls.element_type.decode(stream) for _ in range(_length)] + _val = [cls.element_type.decode(stream) for _ in range(_len)] if issubclass(cls.element_type, BitArrayType): return list(chain.from_iterable(_val))