mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2997 (BeBook)
This commit is contained in:
parent
b7872873dd
commit
34c75d7aea
@ -313,10 +313,13 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
for i, line in enumerate(lines):
|
||||
if 'main' not in names and self.check_ioreg_line(line, self.OSX_MAIN_MEM):
|
||||
get_dev_node(lines[i+1:], 'main')
|
||||
continue
|
||||
if 'carda' not in names and self.check_ioreg_line(line, self.OSX_CARD_A_MEM):
|
||||
get_dev_node(lines[i+1:], 'carda')
|
||||
continue
|
||||
if 'cardb' not in names and self.check_ioreg_line(line, self.OSX_CARD_B_MEM):
|
||||
get_dev_node(lines[i+1:], 'cardb')
|
||||
continue
|
||||
if len(names.keys()) == 3:
|
||||
break
|
||||
return self.osx_sort_names(names)
|
||||
|
Loading…
x
Reference in New Issue
Block a user