Skip to content

Commit

Permalink
Fix serial server args order (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerwr authored Oct 30, 2023
1 parent d907c44 commit 1c96d93
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pymodbus/server/async_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def __init__(
:param request_tracer: Callback method for tracing
"""
super().__init__(
CommParams(
params=CommParams(
comm_type=CommType.SERIAL,
comm_name="server_listener",
reconnect_delay=kwargs.get("reconnect_delay", 2),
Expand All @@ -534,13 +534,13 @@ def __init__(
baudrate=kwargs.get("baudrate", 19200),
stopbits=kwargs.get("stopbits", 1),
),
context,
kwargs.get("ignore_missing_slaves", False),
kwargs.get("broadcast_enable", False),
kwargs.get("request_tracer", None),
kwargs.get("response_manipulator", None),
kwargs.get("identity", None),
framer,
context=context,
ignore_missing_slaves=kwargs.get("ignore_missing_slaves", False),
broadcast_enable=kwargs.get("broadcast_enable", False),
response_manipulator=kwargs.get("response_manipulator", None),
request_tracer=kwargs.get("request_tracer", None),
identity=kwargs.get("identity", None),
framer=framer,
)
self.handle_local_echo = kwargs.get("handle_local_echo", False)

Expand Down

0 comments on commit 1c96d93

Please sign in to comment.