Skip to content

Commit

Permalink
driver/quartushpsdriver: fix ManagedFile initialization
Browse files Browse the repository at this point in the history
ManagedFile needs positional argument 'resource'.

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


assert isinstance(address, int) assert isinstance(address, int)
Expand Down

0 comments on commit 6f3fb68

Please sign in to comment.