Skip to content

Commit a16f774

Browse files
committed
Temp.
1 parent a43e9cb commit a16f774

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

pymodbus/framer/rtu.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from __future__ import annotations
33

44
from ..logging import Log
5-
from ..pdu import DecodePDU
65
from .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

0 commit comments

Comments
 (0)