Fixing the issue where the word "Loading" is used instead of the COM port

"[+] Using UART port Loading"
This commit is contained in:
Aleksey Makarkin committed 2026-05-23 23:28:12 +02:00
1 parent 54fa865d2b
commit 4e9a27d7b0
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ function get_pm3_list_Windows {
PM3LIST=()
# Normal SERIAL PORTS (COM)
for DEV in $($PSHEXE -command "Get-CimInstance -ClassName Win32_serialport | Where-Object {\$_.PNPDeviceID -like '*VID_9AC4&PID_4B8F*' -or \$_.PNPDeviceID -like '*VID_2D2D&PID_504D*'} | Select -expandproperty DeviceID" 2>/dev/null); do
for DEV in $($PSHEXE -NoProfile -command "Get-CimInstance -ClassName Win32_serialport | Where-Object {\$_.PNPDeviceID -like '*VID_9AC4&PID_4B8F*' -or \$_.PNPDeviceID -like '*VID_2D2D&PID_504D*'} | Select -expandproperty DeviceID" 2>/dev/null); do
_comport=$DEV