Skip to content

Commit 4786016

Browse files
James CrosbyJames Crosby
authored andcommitted
tweak doc+comment
1 parent 60043b6 commit 4786016

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mbed_lstools/lstools_darwin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,17 @@ def get_mount_points(self):
8181

8282
return r
8383

84+
8485
def get_mbed_volumes(self):
85-
''' returns a map {volume_id: {serial:, vendor_id:, product_id:}'''
86+
''' returns a map {volume_id: {serial:, vendor_id:, product_id:, tty:}'''
8687

8788
# to find all the possible mbed volumes, we look for registry entries
8889
# under the USB bus which have a "BSD Name" that starts with "disk"
8990
# (i.e. this is a USB disk), and have a IORegistryEntryName that
9091
# matches /\cmbed/
92+
# Once we've found a disk, we can search up for a parent with a valid
93+
# serial number, and then search down again to find a tty that's part
94+
# of the same composite device
9195
# ioreg -a -r -n "AppleUSBXHCI" -l
9296
ioreg_usb = subprocess.Popen(['ioreg', '-a', '-r', '-n', 'AppleUSBXHCI', '-l'], stdout=subprocess.PIPE)
9397
usb_bus = plistlib.readPlist(ioreg_usb.stdout)

0 commit comments

Comments
 (0)