Skip to content

Commit 05687cc

Browse files
author
Juho Hovila
committed
Fix try_drag_and_drop_flash
Wrong parameters were used.
1 parent be1761a commit 05687cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed_flasher/flashers/FlasherMbed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def try_drag_and_drop_flash(self, source, target, target_filename, no_reset):
170170
self.copy_file(source, destination)
171171
self.logger.debug("copy finished")
172172

173-
target = MbedCommon.wait_for_file_disappear(target, source)
173+
target = MbedCommon.wait_for_file_disappear(target, target_filename)
174174

175175
if not no_reset:
176176
Reset(logger=self.logger).reset_board(target["serial_port"])
@@ -179,7 +179,7 @@ def try_drag_and_drop_flash(self, source, target, target_filename, no_reset):
179179
# verify flashing went as planned
180180
self.logger.debug("verifying flash")
181181
return self.verify_flash_success(
182-
target, MbedCommon.get_binary_destination(target["mount_point"], source))
182+
target, MbedCommon.get_binary_destination(target["mount_point"], target_filename))
183183
# In python3 IOError is just an alias for OSError
184184
except (OSError, IOError) as error:
185185
msg = "File copy failed due to: {}".format(str(error))

0 commit comments

Comments
 (0)