mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MTP driver: Fix for SD card causing errors with some devices on linux and OS X
This commit is contained in:
parent
e88b27c5fc
commit
e0d31bafa7
@ -367,7 +367,7 @@ class MTP_DEVICE(MTPDeviceBase):
|
||||
ename = name.encode('utf-8') if isinstance(name, unicode) else name
|
||||
sid, pid = parent.storage_id, parent.object_id
|
||||
if pid == sid:
|
||||
pid = 0
|
||||
pid = 0xFFFFFFFF
|
||||
|
||||
ans, errs = self.dev.put_file(sid, pid, ename, stream, size, callback)
|
||||
if ans is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user