mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Uppercase PNP ids for windows_filter_pnp_id
This commit is contained in:
parent
5dee2b7d72
commit
a11b260008
@ -238,9 +238,14 @@ class Device(DeviceConfig, DevicePlugin):
|
|||||||
time.sleep(7)
|
time.sleep(7)
|
||||||
dlmap = get_drive_letters_for_device(usbdev, debug=debug)
|
dlmap = get_drive_letters_for_device(usbdev, debug=debug)
|
||||||
|
|
||||||
|
if debug:
|
||||||
|
from pprint import pformat
|
||||||
|
prints('Drive letters for {}'.format(usbdev))
|
||||||
|
prints(pformat(dlmap))
|
||||||
|
|
||||||
filtered = set()
|
filtered = set()
|
||||||
for dl in dlmap['drive_letters']:
|
for dl in dlmap['drive_letters']:
|
||||||
pnp_id = dlmap['pnp_id_map'][dl]
|
pnp_id = dlmap['pnp_id_map'][dl].upper()
|
||||||
if self.windows_filter_pnp_id(pnp_id):
|
if self.windows_filter_pnp_id(pnp_id):
|
||||||
filtered.add(dl)
|
filtered.add(dl)
|
||||||
if debug:
|
if debug:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user