File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def block_download(self, data):
123
123
self .abort (0x05040001 )
124
124
125
125
def init_download (self , request ):
126
- # TODO: Check if writable
126
+ # TODO: Check if writable (now would fail on end of segmented downloads)
127
127
command , index , subindex = SDO_STRUCT .unpack_from (request )
128
128
self ._index = index
129
129
self ._subindex = subindex
@@ -136,7 +136,7 @@ def init_download(self, request):
136
136
size = 4 - ((command >> 2 ) & 0x3 )
137
137
else :
138
138
size = 4
139
- self .download (index , subindex , request [4 :4 + size ])
139
+ self ._node . set_data (index , subindex , request [4 :4 + size ], check_writable = True )
140
140
else :
141
141
logger .info ("Initiating segmented download for 0x%X:%d" , index , subindex )
142
142
if command & SIZE_SPECIFIED :
You can’t perform that action at this time.
0 commit comments