Skip to content

Commit

Permalink
Fix updatershell command when using camera in MTP mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ma1co committed Oct 9, 2017
1 parent 2dc9afe commit 23947e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pmca/commands/usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def updaterShellCommand(model=None, fdatFile=None, driverName=None):
print('Unknown device: %s' % model)
return

def complete():
def complete(device):
print('Starting updater shell...')
print('')
usbshell.usbshell_loop(device)
Expand Down
2 changes: 1 addition & 1 deletion pmca/usb/sony.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def _sendWriteCommands(self, command, file, size, progress=None, complete=None):
if progress:
progress(written, size)
if complete and written == size and not completeCalled:
complete()
complete(self.dev)
completeCalled = True
if status == [self.STAT_OK]:
break
Expand Down

0 comments on commit 23947e5

Please sign in to comment.