Permalink
Browse files

driver/quartushpsdriver: fix ManagedFile initialization

ManagedFile needs positional argument 'resource'.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Fixes: b422482 ("multiple: use ManagedFile for file uploads")
  • Loading branch information...
BastianStender committed Oct 25, 2018
1 parent 9330e93 commit 6f3fb68b64652b425be5368efcc7cdb4f4b0ec2e
Showing with 1 addition and 1 deletion.
  1. +1 −1 labgrid/driver/quartushpsdriver.py
@@ -63,7 +63,7 @@ def _get_cable_number(self):
def flash(self, filename=None, address=0x0):
if filename is None and self.image is not None:
filename = self.target.env.config.get_image_path(self.image)
mf = ManagedFile(filename)
mf = ManagedFile(filename, self.interface)
mf.sync_to_resource()
assert isinstance(address, int)

0 comments on commit 6f3fb68

Please sign in to comment.