Skip to content

Commit 2a36fa2

Browse files
authored
Well then, my USB passthrough was all kinds of f----d up... (#54)
* Mommy I did a coopsy doopsy * Daddy mommy beat me because I left my debug IDs in
1 parent 41417b0 commit 2a36fa2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

scripts/domtrues/usb-passthrough.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def cpydLog(logStatus,logMsg,*args):
8383
cpydLog("info",(" "))
8484
cpydLog("info",("Logging to ./logs/UPTA_RUN_"+logTime+".log"))
8585

86-
87-
8886
# Declare method of clearing the screen the Coopydoopydoo way.
8987
def clear():
9088
os.system("clear")
@@ -332,15 +330,15 @@ def phase3():
332330

333331
# Generate QEMU flags per device
334332
for i in range(len(selected_usb_ids)):
335-
vendor_id: str = usb_ids[i].split(":")[0]
336-
product_id: str = usb_ids[i].split(":")[1]
333+
vendor_id: str = selected_usb_ids[i].split(":")[0]
334+
product_id: str = selected_usb_ids[i].split(":")[1]
337335
qemu_flags.append(f"-device usb-host,vendorid=0x{vendor_id},productid=0x{product_id}")
338336

339337
# Display visual flags for QEMU.
340338
for i in range(len(selected_usb_ids)):
341339
print(f" \033[1m{usb_names[usb_ids.index(selected_usb_ids[i])]}\033[0m")
342-
vendor_id: str = usb_ids[i].split(":")[0]
343-
product_id: str = usb_ids[i].split(":")[1]
340+
vendor_id: str = selected_usb_ids[i].split(":")[0]
341+
product_id: str = selected_usb_ids[i].split(":")[1]
344342
print(f" \033[37m{qemu_flags[i]}\033[0m")
345343

346344
# Get user input
@@ -530,4 +528,4 @@ def manualAPSelect():
530528
manualAPSelect()
531529

532530
# Start Script
533-
preliminary()
531+
preliminary()

0 commit comments

Comments
 (0)