File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22from __future__ import annotations
33
44from ..logging import Log
5- from ..pdu import DecodePDU
65from .base import FramerBase
76
87
@@ -59,7 +58,7 @@ class FramerRTU(FramerBase):
5958 """
6059
6160 MIN_SIZE = 4 # <device id><function code><crc 2 bytes>
62-
61+ device_ids : list [ int ] = [] # will be converted to instance variable
6362
6463 @classmethod
6564 def generate_crc16_table (cls ) -> list [int ]:
@@ -80,14 +79,6 @@ def generate_crc16_table(cls) -> list[int]:
8079 return result
8180 crc16_table : list [int ] = [0 ]
8281
83- def __init__ (
84- self ,
85- decoder : DecodePDU
86- ) -> None :
87- """Initialize a RTU ADU (framer) instance."""
88- super ().__init__ (decoder )
89- self .device_ids : list [int ] = []
90-
9182 def setMultidrop (self , device_ids : list [int ]):
9283 """Activate multidrop support."""
9384 self .device_ids = device_ids
You can’t perform that action at this time.
0 commit comments