Skip to content

Commit 9b7fa31

Browse files
authored
Check writeable for SDO upload
1 parent 9ae9dab commit 9b7fa31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

canopen/sdo/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,4 @@ def download(self, index, subindex, data, force_segment=False):
210210
:raises canopen.SdoAbortedError:
211211
When node responds with an error.
212212
"""
213-
return self._node.set_data(index, subindex, data)
213+
return self._node.set_data(index, subindex, data, check_writable=True)

0 commit comments

Comments
 (0)