Skip to content

Commit 79ce452

Browse files
author
Janis Ita
committed
added new arguments to docstrings
1 parent 1f28869 commit 79ce452

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

canopen/sdo/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ def open(self, mode="rb", encoding="ascii", buffering=1024, size=None,
136136
Size of data to that will be transmitted.
137137
:param bool block_transfer:
138138
If block transfer should be used.
139+
:param bool request_crc_support:
140+
If crc calculation should be requested when using block transfer
139141
140142
:returns:
141143
A file like object.

canopen/sdo/client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ def open(self, index, subindex=0, mode="rb", encoding="ascii",
185185
If block transfer should be used.
186186
:param bool force_segment:
187187
Force use of segmented download regardless of data size.
188-
188+
:param bool request_crc_support:
189+
If crc calculation should be requested when using block transfer
190+
189191
:returns:
190192
A file like object.
191193
"""
@@ -454,6 +456,8 @@ def __init__(self, sdo_client, index, subindex=0, request_crc_support=True):
454456
Object dictionary index to read from.
455457
:param int subindex:
456458
Object dictionary sub-index to read from.
459+
:param bool request_crc_support:
460+
If crc calculation should be requested when using block transfer
457461
"""
458462
self._done = False
459463
self.sdo_client = sdo_client
@@ -608,6 +612,8 @@ def __init__(self, sdo_client, index, subindex=0, size=None, request_crc_support
608612
Object dictionary sub-index to read from.
609613
:param int size:
610614
Size of data in number of bytes if known in advance.
615+
:param bool request_crc_support:
616+
If crc calculation should be requested when using block transfer
611617
"""
612618
self.sdo_client = sdo_client
613619
self.size = size

0 commit comments

Comments
 (0)