Skip to content

Commit 09a32ea

Browse files
committed
BUGFIX: MAVFTP callback progress hack to avoid crashing
1 parent cde9151 commit 09a32ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MethodicConfigurator/backend_mavftp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def write_payload(self, op):
292292
self.fh.write(op.payload)
293293
self.read_total += len(op.payload)
294294
if self.callback_progress is not None:
295-
self.callback_progress(self.fh, self.read_total)
295+
self.callback_progress(self.read_total, self.read_total+1)
296296

297297
def handle_burst_read(self, op, _m): # pylint: disable=too-many-branches, too-many-statements, too-many-return-statements
298298
'''handle OP_BurstReadFile reply'''

0 commit comments

Comments
 (0)